crypto

package
v0.0.0-...-9f86afd Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText, secret string) (string, error)

procedure is as follow:

1. base64 decode

2. decrypt aes in CTR mode

3. remove salt

func Encrypt

func Encrypt(plainText, secret string) (string, error)

procedure is as follow:

1. plainText + salt -> binary format

2. encrypt aes in CTR mode

3. base64 encode

Types

This section is empty.

Jump to

Keyboard shortcuts

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