crypto

package
v0.0.0-...-7462ca0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64AESGCMDecrypt

func Base64AESGCMDecrypt(key, encodedData string) ([]byte, error)

Decrypt a base64 encoded string encrypted with Base64Encrypt.

func Base64AESGCMEncrypt

func Base64AESGCMEncrypt(key string, data []byte) (string, error)

Encrypt with AES+GCM using scrypt for key derivation with a 32 byte random salt, encoding the resulting ciphertext with Base64

Types

This section is empty.

Jump to

Keyboard shortcuts

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