We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As specified in RFC 8439 and used in the Lightning Protocol (BOLT-08).
The text was updated successfully, but these errors were encountered:
If you need this, you can use http://GITHUB.COM/lvh/caesium or (Java 11)
(defn javaenc [msg iv keyb] (let [mamboSpec (javax.crypto.spec.IvParameterSpec. iv) k4 (javax.crypto.spec.SecretKeySpec. keyb "ChaCha20") ci (doto (javax.crypto.Cipher/getInstance "ChaCha20-Poly1305") (.init javax.crypto.Cipher/ENCRYPT_MODE k4 mamboSpec))] (-> (.doFinal ci msg) (hexlify))))
IV is 12 bytes. Key is 32 bytes.
Sorry, something went wrong.
PR welcome ;)
No branches or pull requests
As specified in RFC 8439 and used in the Lightning Protocol (BOLT-08).
The text was updated successfully, but these errors were encountered: