Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AES256 Decrypt with PrivateKey (Certificate) #5

Open
jindrichvolek opened this issue Jan 18, 2020 · 3 comments
Open

AES256 Decrypt with PrivateKey (Certificate) #5

jindrichvolek opened this issue Jan 18, 2020 · 3 comments

Comments

@jindrichvolek
Copy link

Hello
please, how to decrypt AES256 with PrivateKey (Certificate)
Thx.

@lminuti
Copy link
Owner

lminuti commented Jan 20, 2020

You can see the code here: https://github.com/lminuti/Delphi-OpenSSL#encrypt-with-aes256
But AES256 is a symmetric algorithm, it uses a key and an initialization vector to encode the data not a certificate. DelphiOpenSSL has a special record (TPassphrase) that can generate key and IV from a string.

@jindrichvolek
Copy link
Author

jindrichvolek commented Jan 26, 2020 via email

@lminuti
Copy link
Owner

lminuti commented Jan 27, 2020

I'm sorry but I never use AES with certificate. You can try to inspect the certificate with something like:
openssl x509 -in your_cerificate -text
and try to extract the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants