package
0.0.0-20241113112105-d5176070b8d9
Repository: https://github.com/ortizdavid/go-nopain.git
Documentation: pkg.go.dev
# README
encryption
Package for data encryption and random generation
Features
- MD5 encoding
- Base64 encoding
- Password hashing
- UUID
- Random Token
- Tests
# Functions
CheckPassword compares a bcrypt hashed password with a plain-text password.
CompareBase64Encoding compares a Base64 encoded string with its original text.
DecodeBase64 decodes the given Base64 encoded string.
DecodeMD5 decodes the given hexadecimal encoded MD5 hash.
EncodeBase64 encodes the given text to Base64.
EncodeMD5 encodes the given text using MD5 hashing algorithm.
No description provided by the author
No description provided by the author
No description provided by the author
HashPassword generates a bcrypt hash from the given password.