package
0.0.0-20240820091150-63300860b0ac
Repository: https://github.com/nextlag/keeper.git
Documentation: pkg.go.dev
# Functions
CreateToken creates a JWT token with the specified TTL (time to live), payload, and RSA private key.
Decrypt decrypts a base64 URL encoded AES-GCM encrypted string.
DecryptFile decrypts a base64 URL encoded AES-GCM encrypted file and writes the result to a new file.
Encrypt encrypts a string using AES-GCM with a key derived from keyString.
EncryptFile encrypts the contents of a file using AES-GCM and writes the result to a new file.
HashPassword generates a bcrypt hash of the given password.
SaveUploadedFile saves an uploaded file to a specified destination.
ValidToken checks the validity of the token and returns the subject of the token if it is valid.
VerifyPassword - password verification.