OpenSSL Public & Private keys

Private key : -----BEGIN PRIVATE KEY-----
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAOcxjS2zizMQ3n/1
HsobXpZJ6r+0PZVPhEHtu7LEqbTAtPc3QlgWHeRsCzbsKZmuyNJPooC65EyTMuuf
PTfqFrRItFIx5u49sR2vdTzRAbqAHaM374pKESCQs/v5sMtvwcmoIgldVeeOnjJ5
7RWJjfz95JN2IY//jAeTrg6fcKnnAgMBAAECgYEA1GB9iyzyw09MxYi75vcrda2j
OsVtCPsJyLKFiRwFtWiNFMgrZtWyUgI6bxKUyHt6OVA0PELys7FIxo/6YaHlhap8
zLHqcR/LgPeNb2jCgfYPYw8JI8KnfI305srqjW5gb6YA8dBFy44VJ7P6bAOYi478
gO3ZJ/jb+iZGya9hmCECQQD2w9P8YoPCC2jzc2KJzugoqpFGI0wYNtqmjnk2+4Xi
OkfGiUt7xeDE5Tca9QVwZmPWmFKSq0YD/tx0SrpYGU2RAkEA79iKBNLlVr9h3Ior
C4ssJbe0pLly4IobtXi6nXPQm2ErLxMtqxnfl0qyGXB++N1fwhspSFnuafmQMr6h
TKwj9wJBAKkMtRAk6UCpEmgdtvbTsUYSu91B1yKLibUqy624GBtIc912Nyj/AaHB
qcOk8enzqxfbWE40WY3pLlvYydoK05ECQHOHinPoYi/239yrcTCOSSWh55GxAnTG
EbLIBJvzPXiaxYJXapgQTnNBt6gpV//oIkgNbUU8jGrfm2XWDTwxbuECQC0SQWyd
yWlGCGGDNoGXRnWAReLhAMcM9viIfXRujpGSAPFjHGwNAQVs9/dGghCxsdSJwySP
L9A93gxfljm9Rqc=
-----END PRIVATE KEY-----
Public key : -----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDnMY0ts4szEN5/9R7KG16WSeq/
tD2VT4RB7buyxKm0wLT3N0JYFh3kbAs27CmZrsjST6KAuuRMkzLrnz036ha0SLRS
MebuPbEdr3U80QG6gB2jN++KShEgkLP7+bDLb8HJqCIJXVXnjp4yee0ViY38/eST
diGP/4wHk64On3Cp5wIDAQAB
-----END PUBLIC KEY-----

The data : plaintext data goes here

Encrypted data : LmSuN9lSmKeCfNhhCRTRfAjtQzyHt7YjcBTQtB+c/QhjaWpfQqp5xsdefz+hHiaUF3fCUT2EcFFqqjhWQUjSRUgJ3nRg8A2Vrj0teEbf2K7tiwJCHGb2iHyJVnCqCcIDcmn71IFvXqmCaLIY3bBjSZe/J0bFTXZg+zZjO41ejIU=

Decrypted data : plaintext data goes here


PHP code as text

Private & Public keys file

Source ➠ https://www.php.net/manual/en/function.openssl-pkey-new.php

Jul 04 2022 17:04:42