Skip to content
This repository was archived by the owner on Apr 11, 2026. It is now read-only.

hashamali/gcrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcrypto

godoc tests sec coverage go-report license

Thin wrapper around Go's standard crypto library.

API

  • GenerateRandomKey: Generates a random byte array key (NOTE: don't use this for human readable keys).
  • HMACSHA256: Generates an HMAC SHA256 of given body with provided key.
  • SHA256: Generates SHA256 of given body.
  • MD5: Generates MD5 of given body.
  • AES256Encrypt: Apply AES-256 encryption on the given body with the provided key.
  • AES256Decrypt: Apply AES-256 decryption on the given data with the provided key.

Testing

make test

About

Common cryptographic methods.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors