gpwmcrypto

package
v0.0.0-...-c049f52 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAESKEK

func DecryptAESKEK(data []byte, password string, email string) (string, error)

DecryptAESKEK : decrypts Actual Key using KEK

func EncryptKEKAES

func EncryptKEKAES(data []byte, password string, email string) ([]byte, error)

EncryptKEKAES encrypts Actual Key By the KEK

func GenerateAccountSecretKey

func GenerateAccountSecretKey() string

GenerateAccountSecretKey Generates a Crytographically secure random alphanumeric

func GenerateKEKHashSha256

func GenerateKEKHashSha256(password string, email string) [sha256.Size]byte

GenerateKEKHashSha256 generates a Key Encryption Key(KEK) using user provider secret password and some non-secret such as user account email address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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