https://github.com/dchest/scryptutil
Go reimplementation of Colin Percival's scrypt file encryption utility.
https://github.com/dchest/scryptutil
Last synced: about 1 year ago
JSON representation
Go reimplementation of Colin Percival's scrypt file encryption utility.
- Host: GitHub
- URL: https://github.com/dchest/scryptutil
- Owner: dchest
- License: bsd-2-clause
- Created: 2012-04-27T12:09:35.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2014-12-11T08:21:23.000Z (over 11 years ago)
- Last Synced: 2025-04-11T04:36:01.699Z (about 1 year ago)
- Language: Go
- Size: 146 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
COMMAND
scryptutil encrypts and decrypts files.
Files are encrypted with AES-256 in CTR mode and authenticated with
HMAC-SHA256. Encryption and HMAC keys are derived from passphrase using
scrypt key derivation function.
Usage:
scryptutil {enc | dec} [infile] [outfile]
If infile is not given, the program reads from the standard input.
If outfile is not given, the program writes to the standard output.
scryptutil is a Go reimplementation of Colin Percival's scrypt utility,
which is used to encrypt key files for his Tarsnap backup service (see
http://www.tarsnap.com/scrypt.html). The file format is the same: files
encrypted by this utility can be decrypted with the original scrypt, and
vice versa.
INSTALLATION
$ go get github.com/dchest/scryptutil
BUGS
Parameters for KDF during encryption are hardcoded to N=2¹⁸, r=8, p=1.
None of the original scrypt utility flags are supported.