Documentation
¶
Overview ¶
Package symmetric implements Symmetric Encryption methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInputSize indicates cipher data size is not expected, // maybe data is not encrypted by EncryptWithPassword in this package ErrInputSize = errors.New("cipher data size not match") )
Functions ¶
func DecryptWithPassword ¶
DecryptWithPassword decrypts data with given password.
func EncryptWithPassword ¶
EncryptWithPassword encrypts data with given password, iv will be placed at head of cipher data.
func KeyDerivation ¶
KeyDerivation does sha256 twice to password.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.