Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptString ¶
DecryptString decrypts a base64url encoded ciphertext using the provided key string The key must be the same string used for encryption Returns the original plaintext
func EncryptString ¶
EncryptString encrypts a plaintext string using the provided key string The key can be any length - it will be hashed to create a 32-byte AES key Returns base64url encoded ciphertext (URL-safe: uses - and _ instead of + and /)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.