Memory leaks (!)
Correct function names
crypto_secretbox
encode/decode latin1
crypto_sign