Versions in this module Expand all Collapse all v1 v1.0.0 Mar 27, 2024 Changes in this version + const IterationCount + const KeyLength + const SaltLength + func Decrypt(crypt string, key string) (string, error) + func Encrypt(src string, key string) (string, error) + 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