RustCrypto / stream-ciphers

Collection of stream cipher algorithms
252 stars 49 forks source link

sample code #74

Closed gzbakku closed 4 years ago

gzbakku commented 4 years ago

hedy can you please provide some sample code as to how to encrypt strings i tried everything thanks mate.

tarcieri commented 4 years ago

Is there a specific cipher you're interested in? The ChaCha20 crate has example code:

https://docs.rs/chacha20/0.2.3/chacha20/?search=#usage

...however note unless you have a very specific use case, you should probably be using AEAD ciphers:

https://github.com/rustcrypto/aeads