crypto

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

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	//AesSymmetricType helps identity which encryption/decryption to use.
	AesSymmetricType = "aes"
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encryptionType string, hasKey []byte, buffer *bytes.Buffer) error

func Encrypt

func Encrypt(encryptionType string, hasKey, data []byte, buffer *bytes.Buffer) error

func GetHashWithArgon

func GetHashWithArgon(passphrase, salt string, timeConsideration uint32, multiplier uint32, threads uint8, hashLength uint32) []byte

GetHashWithArgon uses Argon2 version 0x13 to hash a plaintext password with a provided salt string and return hash as bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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