https://github.com/shresht7/gocrypt
Cryptographic utilities for go
https://github.com/shresht7/gocrypt
Last synced: 2 months ago
JSON representation
Cryptographic utilities for go
- Host: GitHub
- URL: https://github.com/shresht7/gocrypt
- Owner: Shresht7
- License: mit
- Created: 2022-06-14T08:14:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-16T06:01:09.000Z (2 months ago)
- Last Synced: 2025-03-16T07:18:35.654Z (2 months ago)
- Language: Go
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gocrypt
A collection of go packages for cryptography.
- [Encryption](./encryption/)
- [Hash](./hash/)
- [HMAC](./hmac/)
- [Key Derivation Function](./key/)
- [Stream Encryption](./stream/)
- [Utilities](./utils/)## Installation
```sh
go get github.com/Shresht7/gocrypt
```## Packages
### `encryption`
Encrypt and decrypt data using cryptographic `AEAD` algorithms like `AES-256-GCM` and `XChaCha20-Poly1305`.
### `hash`
Hash data using cryptographic hashing functions like `SHA-256`, `SHA-512` and `HMAC-SHA-512-256`.
### `hmac`
_Hash-based Message Authentication Code_ using `HMAC-SHA-512-256`.
### `key`
Password-based Key Derivation Functions using `bcrypt`, `scrypt` and `argon2id`.
### `stream`
Encrypt and decrypt data streams using `stream-ciphers`.
### `utils`
The [`utils`](./utils./) package contains miscellaneous helper functions to generate a byte-slice of random bytes, generate random string, and encode/decode byte slices.
## 📑 License
> [MIT License](./LICENSE)