Salsa20 by Daniel J. Bernstein is a family of stream ciphers built on a pseudo-random function.

The algorithm uses XOR, rotation operations, and 32-bit addition. It is pretty fast while mapping a 256-bit key, a 64-bit nonce, and a 64-bit stream position to a 512-bit output.

history | show excerpt | excerpt history