crypt

package
v0.0.0-...-529d675 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(ciphertext []byte, key []byte) ([]byte, error)

func EncryptAES

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

func GenerateAESKeyFromPassword

func GenerateAESKeyFromPassword(password, salt []byte, iterations int) []byte

func GenerateSalt

func GenerateSalt(length int) (string, error)

func PKCS7Padding

func PKCS7Padding(plaintext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(plaintext []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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