https://github.com/phxql/chacha20-poly1305-java
Showcases the usage of the ChaCha20-Poly1305 cipher which has been integrated into Java 11
https://github.com/phxql/chacha20-poly1305-java
Last synced: 12 months ago
JSON representation
Showcases the usage of the ChaCha20-Poly1305 cipher which has been integrated into Java 11
- Host: GitHub
- URL: https://github.com/phxql/chacha20-poly1305-java
- Owner: phxql
- Created: 2020-01-19T13:53:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-19T13:56:34.000Z (over 6 years ago)
- Last Synced: 2025-07-22T05:44:57.985Z (about 1 year ago)
- Language: Java
- Size: 51.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ChaCha20-Poly1305 in Java
Showcases the usage of the ChaCha20-Poly1305 cipher which [has been integrated into Java 11](https://openjdk.java.net/jeps/329).
Note: The nonce is generated via `SecureRandom`. As the nonce is only 96 bits long, this could, if encrypting a lot of messages with the same key,
lead to nonce reuse. A better approach is to use an increasing counter. **NEVER** reuse a nonce!
## License
[CC0](https://creativecommons.org/publicdomain/zero/1.0/deed.en)