Versions in this module Expand all Collapse all v1 v1.0.0 Apr 5, 2022 Changes in this version + const IterationCount + const KeyLength + const SaltLength + func AESDecrypt(crypt string, key []byte) (string, error) + func AESEncrypt(src string, key []byte) (string, error) + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5Trimming(encrypt []byte) []byte + type CouldNotObtainRandomIVError struct + Msg string + func (err *CouldNotObtainRandomIVError) Error() string + type CouldNotObtainRandomSaltError struct + Msg string + func (err *CouldNotObtainRandomSaltError) Error() string + type IncorrectPassphraseError struct + func (err *IncorrectPassphraseError) Error() string + type InvalidAESKeyError struct + Msg string + func (err *InvalidAESKeyError) Error() string + type InvalidEncryptedDataError struct + Msg string + func (err *InvalidEncryptedDataError) Error() string + type InvalidIVError struct + Msg string + func (err *InvalidIVError) Error() string + type InvalidPassphraseError struct + Msg string + func (err *InvalidPassphraseError) Error() string + type InvalidSaltError struct + Msg string + func (err *InvalidSaltError) Error() string