Home
Name Modified Size InfoDownloads / Week
sm4crypt_win32.zip 2023-04-14 805.2 kB
sm4crypt_win64.zip 2023-04-14 894.1 kB
sm4crypt_linux-amd64.zip 2023-04-14 858.7 kB
sm4crypt_linux-x86.zip 2023-04-14 757.6 kB
sm4crypt_linux-armel.zip 2023-04-14 747.3 kB
README.md 2023-04-14 1.5 kB
Totals: 6 Items   4.1 MB 0

SM4Crypt

ISC License GoDoc Go Report Card GitHub go.mod Go version GitHub release (latest by date)

Command-line SM4-GCM Encryption Tool

Usage of sm4crypt:
sm4crypt [-d] -p "pass" [-i N] [-s "salt"] -f <file.ext>
  -a string
        Additional Associated Data.
  -d    Decrypt instead of Encrypt.
  -f string
        Target file. ('-' for STDIN)
  -i int
        Iterations. (for PBKDF2) (default 1024)
  -k string
        128-bit key to Encrypt/Decrypt.
  -p string
        Password-based key derivation function2.
  -r    Generate random 128-bit cryptographic key.
  -s string
        Salt. (for PBKDF2)

Example of encryption/decryption:

./sm4crypt -k $128bitkey -f plaintext.ext > ciphertext.ext
./sm4crypt -d -k $128bitkey -f ciphertext.ext > plaintext.ext

License

This project is licensed under the ISC License.

Source: README.md, updated 2023-04-14