encryptutil

package
v0.0.0-...-98dbf0f Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) error

func DecryptAES

func DecryptAES(key []byte, ct string) (string, error)

func EncryptAES

func EncryptAES(key []byte, plaintext string) (string, error)

AES (Advanced Encryption Standard)

func HashPassword

func HashPassword(password string) (string, error)

func RSA_OAEP_Decrypt

func RSA_OAEP_Decrypt(cipherText string, privKey rsa.PrivateKey, label string) (string, error)

func RSA_OAEP_Encrypt

func RSA_OAEP_Encrypt(secretMessage string, key rsa.PublicKey, label string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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