Documentation ¶
Index ¶
- Constants
- func Decrypt(crypt string, key string) (string, error)
- func Encrypt(src string, key string) (string, error)
- type CouldNotObtainRandomIVError
- type CouldNotObtainRandomSaltError
- type IncorrectPassphraseError
- type InvalidAESKeyError
- type InvalidEncryptedDataError
- type InvalidIVError
- type InvalidPassphraseError
- type InvalidSaltError
Constants ¶
View Source
const IterationCount = 65536
View Source
const KeyLength = 16
View Source
const SaltLength = 16
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CouldNotObtainRandomIVError ¶
type CouldNotObtainRandomIVError struct {
Msg string
}
func (*CouldNotObtainRandomIVError) Error ¶
func (err *CouldNotObtainRandomIVError) Error() string
type CouldNotObtainRandomSaltError ¶
type CouldNotObtainRandomSaltError struct {
Msg string
}
func (*CouldNotObtainRandomSaltError) Error ¶
func (err *CouldNotObtainRandomSaltError) Error() string
type IncorrectPassphraseError ¶
type IncorrectPassphraseError struct{}
func (*IncorrectPassphraseError) Error ¶
func (err *IncorrectPassphraseError) Error() string
type InvalidAESKeyError ¶
type InvalidAESKeyError struct {
Msg string
}
func (*InvalidAESKeyError) Error ¶
func (err *InvalidAESKeyError) Error() string
type InvalidEncryptedDataError ¶
type InvalidEncryptedDataError struct {
Msg string
}
func (*InvalidEncryptedDataError) Error ¶
func (err *InvalidEncryptedDataError) Error() string
type InvalidIVError ¶
type InvalidIVError struct {
Msg string
}
func (*InvalidIVError) Error ¶
func (err *InvalidIVError) Error() string
type InvalidPassphraseError ¶
type InvalidPassphraseError struct {
Msg string
}
func (*InvalidPassphraseError) Error ¶
func (err *InvalidPassphraseError) Error() string
type InvalidSaltError ¶
type InvalidSaltError struct {
Msg string
}
func (*InvalidSaltError) Error ¶
func (err *InvalidSaltError) Error() string
Click to show internal directories.
Click to hide internal directories.