Documentation ¶
Overview ¶
Package crypto provides utilities for various crytographic functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
AESDecrypt decrypts the data using AES-128.
func AESEncrypt ¶
AESEncrypt encrypts the data using AES-128.
func CompareHashAndPassword ¶
CompareHashAndPassword checks if the hashed password matches the plain text one.
func GenerateFromPassword ¶
GenerateFromPassword creates a hash from the plain text password.
func GenerateRandomKey ¶
GenerateRandomKey creates a random key with the given strength.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.