shithub: chacha

Clone

clone: git://shithub.us/kemal/chacha gits://shithub.us/kemal/chacha
push: hjgit://shithub.us/kemal/chacha

Last commit

6d61f0e0 – kemal – 2021-05-19T04:30:30-04:00
chacha: style

About

# 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)
}
```