Discover Packages
github.com/arrow2012/nuwa-kit
pkg
crypto
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Jan 14, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Decrypt decrypts base64 encoded string using AES-GCM
It supports reading old plaintext data for migration (returns original if not matching encrypted format)
Encrypt encrypts plain text string into base64 encoded string using AES-GCM
key must be 32 bytes for AES-256
Format: v1:nonce:ciphertext
Source Files
¶
Click to show internal directories.
Click to hide internal directories.