crypto

package
v0.0.0-...-bf229e6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptedValue string) (string, error)

Decrypt decrypts the specified AES encrypted text, represented as a base64 encoded string.

func Encrypt

func Encrypt(value string) (string, error)

Encrypt encrypts the specified text using AES. Returns a base64 encoded string.

func SetSymmetricKey

func SetSymmetricKey(key string) error

SetSymmetricKey changes the symmetric key used for encryption and decryption.

Types

This section is empty.

Jump to

Keyboard shortcuts

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