SkillAgentSearch skills...

Crypt

Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.

Install / Use

/learn @evantbyrne/Crypt
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

crypt

Go Report Card

Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.

Install

Make sure that Go is installed and your PATH includes GOBIN. Then run the following:

bash$ go get -u github.com/evantbyrne/crypt

Usage

bash$ crypt --help
usage: crypt --in=IN [<flags>]

Utility for encrypting and decrypting files with AES-256 GCM and Scrypt.

Flags:
  --help         Show context-sensitive help (also try --help-long and --help-man).
  -e, --encrypt  Encryption mode.
  -d, --decrypt  Decryption mode.
  -i, --in=IN    Input file.
  -o, --out=OUT  Output file.

Encrypt file and store in file:

bash$ crypt -i foo.txt -e -o foo.txt.crypt
Password: 

Decrypt file and display in terminal:

bash$ crypt -i foo.txt.crypt -d
Password: 
The quick brown fox jumps over the lazy dog.

Decrypt file and store in file:

bash$ crypt -i foo.txt.crypt -d -o bar.txt
Password: 

Encrypted data format

+---------------------+-------------------+-------------------+
| 12 byte scrypt salt | 12 byte gcm nonce | encrypted data... |
+---------------------+-------------------+-------------------+

Related Skills

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated1y ago
Forks4

Languages

Go

Security Score

75/100

Audited on Apr 11, 2024

No findings