-
Notifications
You must be signed in to change notification settings - Fork 85
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
What's the best way to handle offline decryption? #126
Comments
It's using halite/src/Asymmetric/Crypto.php Lines 358 to 388 in 2879a0e
|
File:seal seems to be doing something different to |
The JS library I was looking at required some knowledge of the nonce. I don't think Halite exposes it directly, but you might be able to extract it from beginning of the ciphertext |
I'm using
File::seal
to encrypt an uploaded file with a public key. I would like to decrypt it withFile::unseal
in a separate application using the correct private key, but I'm not able to run a server in the decryption environment. I'd like to create an offline application that replicates what File::unseal does... I attempted to decrypt the cipher with a x25519 Javascript library, but there seems to be more to it than a simple decryption with the private key. Can you outline what steps Halite does, and which ciphers are used, as part of the decryption process?This library is excellent, thanks so much for creating it!
The text was updated successfully, but these errors were encountered: