A go package for simple NaCl secret-key encryption and decryption. Provides salted and padded key versions.
Go
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
nacl
.gitignore
BenchmarkResults_padsecret.txt
BenchmarkResults_saltsecret.txt
LICENSE
README.md
example.go

README.md

crypto (golang)

Crypto provides two libraries for easy encryption and decryption of data. It uses NaCl secret-key (symmetric encryption).

Padsecret pads (if needed) the user key with a user-provided pad. It is less secure but very fast.

Saltsecret creates the encryption key anew for every message by using scrypt and the user key. It is more secure but slow.

See the benchmark files or run the benchmarks yourself (go run test -bench .) to make your decision.

You may find documentation and examples in each package's folder.

Also you may check:

https://godoc.org/github.com/andmarios/crypto/nacl/padsecret https://godoc.org/github.com/andmarios/crypto/nacl/saltsecret