Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAlignedToBlock = errors.New("not aligned to block") ErrInvalidPadding = errors.New("invalid padding") )
Functions ¶
func MustSha1Hash ¶
Types ¶
type AESCipher ¶
type PaddingScheme ¶
func NewPkcs5 ¶
func NewPkcs5() PaddingScheme
func NewPkcs7 ¶
func NewPkcs7(blockSize int) PaddingScheme
type PasswordCipher ¶
type PasswordCipher interface { Key() string Encrypt(passwd string) string Decrypt(enc string) (string, error) }
func MustNewPasswordCipher ¶
func MustNewPasswordCipher(key string) PasswordCipher
func NewPasswordCipher ¶
func NewPasswordCipher(key string) (PasswordCipher, error)
Click to show internal directories.
Click to hide internal directories.