adam-mcdaniel / sage

A programming language that's wise beyond its bytes!🌱🌿🪴
https://adam-mcdaniel.net/sage-website
MIT License
414 stars 15 forks source link

Add ChaCha20 cipher example #69

Closed Ronsor closed 8 months ago

Ronsor commented 8 months ago

Add an example for the ChaCha20 stream cipher, similar to the AES example.

Output is confirmed to match the openssl chacha20 command and the reference implementation in NaCl.