shithub: chacha


clone: git:// gits://
push: hjgit://

Last commit

db4a84b6 – kemal – 2021-05-13T00:02:04-04:00
chacha: fix the header length


# chacha

Replacement for `auth/aescbc`. Can be used to encrypt files.
It uses scrypt to stretch the password, so it can be used as a key.
It uses the ChaCha20 cipher to encrypt the files.
It uses the Poly1305 MAC to authenticate the encryption.
Might write a Go version. 

## File format

CHACHA20 POLY1305  1\n
(everythings raw after this point, no newlines, no hex or base64)
16 byte salt for scrypt
8 byte iv
repeat {
	16 byte tag
	encrypted data (max 8192 bytes)