gomicroutils

package module
v1.15.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

gomicroutils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptString

func DecryptString(ciphertext, skey string) (string, error)

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

func EncryptString(plaintext, key string) (string, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL