Documentation
¶
Index ¶
- func AesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesGCMDecrypt(src, key, nonce []byte) ([]byte, error)
- func AesGCMEncrypt(clearText, key []byte) ([]byte, []byte, error)
- func AesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func AesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func Base64Decode(src []byte) ([]byte, error)
- func Base64Encode(src []byte) []byte
- func BlowfishCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func BlowfishOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func DesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func HexDecode(src []byte) ([]byte, error)
- func HexEncode(src []byte) []byte
- func HmacMD5(key, clearText string) string
- func HmacRIPEMD160(key, clearText string) string
- func HmacSHA1(key, clearText string) string
- func HmacSHA224(key, clearText string) string
- func HmacSHA256(key, clearText string) string
- func HmacSHA3224(key, clearText string) string
- func HmacSHA3256(key, clearText string) string
- func HmacSHA3384(key, clearText string) string
- func HmacSHA3512(key, clearText string) string
- func HmacSHA384(key, clearText string) string
- func HmacSHA512(key, clearText string) string
- func MD5(clearText string) string
- func MD5Sixteen(clearText string) string
- func MD5SixteenToLower(clearText string) string
- func MD5SixteenToUpper(clearText string) string
- func MD5ToLower(clearText string) string
- func MD5ToUpper(clearText string) string
- func PasswordHash(clearText []byte, cost int) ([]byte, error)
- func PasswordVerify(clearText, hashedPassword []byte) bool
- func RC4Decrypt(key, password string) ([]byte, error)
- func RC4Encrypt(key, clearText string) ([]byte, error)
- func RIPEMD160(clearText string) string
- func SHA1(clearText string) string
- func SHA224(clearText string) string
- func SHA256(clearText string) string
- func SHA3224(clearText string) string
- func SHA3256(clearText string) string
- func SHA3384(clearText string) string
- func SHA3512(clearText string) string
- func SHA384(clearText string) string
- func SHA512(clearText string) string
- func TripleDesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TripleDesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
- func TwofishOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCBCDecrypt Aes CBC decryption with key, iv and padding
func AesCBCEncrypt ¶
func AesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCBCEncrypt Aes CBC encryption with key, iv and padding
func AesCFBDecrypt ¶
func AesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCFBDecrypt Aes CFB decryption with key, iv and padding
func AesCFBEncrypt ¶
func AesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCFBEncrypt Aes CFB encryption with key, iv and padding
func AesCTRDecrypt ¶
func AesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCTRDecrypt Aes CTR decryption with key, iv and padding
func AesCTREncrypt ¶
func AesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesCTREncrypt Aes CTR encryption with key, iv and padding
func AesECBDecrypt ¶
func AesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
AesECBDecrypt Aes ECB decryption with key, iv and padding
func AesECBEncrypt ¶
func AesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
AesECBEncrypt Aes ECB encryption with key, iv and padding
func AesGCMDecrypt ¶
func AesGCMEncrypt ¶
AesGCMEncrypt Aes GCM encryption with key
func AesOFBDecrypt ¶
func AesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesOFBDecrypt Aes OFB decryption with key, iv and padding
func AesOFBEncrypt ¶
func AesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
AesOFBEncrypt Aes OFB encryption with key, iv and padding
func BlowfishCBCDecrypt ¶
func BlowfishCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCBCDecrypt Blowfish CBC decryption with key, iv and padding
func BlowfishCBCEncrypt ¶
func BlowfishCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCBCEncrypt Blowfish CBC encryption with key, iv and padding
func BlowfishCFBDecrypt ¶
func BlowfishCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCFBDecrypt Blowfish CFB decryption with key, iv and padding
func BlowfishCFBEncrypt ¶
func BlowfishCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCFBEncrypt Blowfish CFB encryption with key, iv and padding
func BlowfishCTRDecrypt ¶
func BlowfishCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCTRDecrypt Blowfish CTR decryption with key, iv and padding
func BlowfishCTREncrypt ¶
func BlowfishCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishCTREncrypt Blowfish CTR encryption with key, iv and padding
func BlowfishECBDecrypt ¶
func BlowfishECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishECBDecrypt Blowfish ECB decryption with key and padding
func BlowfishECBEncrypt ¶
func BlowfishECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishECBEncrypt Blowfish ECB encryption with key and padding
func BlowfishOFBDecrypt ¶
func BlowfishOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishOFBDecrypt Blowfish OFB decryption with key, iv and padding
func BlowfishOFBEncrypt ¶
func BlowfishOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
BlowfishOFBEncrypt Blowfish OFB encryption with key, iv and padding
func DesCBCDecrypt ¶
func DesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCBCDecrypt decrypts by des with cbc mode.
func DesCBCEncrypt ¶
func DesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCBCEncrypt encrypts by des with cbc mode.
func DesCFBDecrypt ¶
func DesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCFBDecrypt decrypts by des with cfb mode.
func DesCFBEncrypt ¶
func DesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCFBEncrypt encrypts by des with cfb mode.
func DesCTRDecrypt ¶
func DesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCTRDecrypt decrypts by des with ctr mode.
func DesCTREncrypt ¶
func DesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesCTREncrypt encrypts by des with ctr mode.
func DesECBDecrypt ¶
func DesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
DesECBDecrypt decrypts by des with ecb mode.
func DesECBEncrypt ¶
func DesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
DesECBEncrypt encrypts by des with ecb mode.
func DesOFBDecrypt ¶
func DesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesOFBDecrypt decrypts by des with ofb mode.
func DesOFBEncrypt ¶
func DesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
DesOFBEncrypt encrypts by des with ofb mode.
func HmacMD5 ¶
HmacMD5 Keyed-hash message authentication codes (HMAC) is a mechanism for message authentication using cryptographic hash functions.
func HmacRIPEMD160 ¶
HmacRIPEMD160 returns a hexadecimal encoding of ripemd160 encrypted string
func HmacSHA224 ¶
HmacSHA224 returns a hexadecimal encoding of sha-224 encrypted string
func HmacSHA256 ¶
HmacSHA256 returns a hexadecimal encoding of sha256 encrypted string
func HmacSHA3224 ¶
HmacSHA3224 returns a hexadecimal encoding of sha3-224 encrypted string
func HmacSHA3256 ¶
HmacSHA3256 returns a hexadecimal encoding of sha3-256 encrypted string
func HmacSHA3384 ¶
HmacSHA3384 returns a hexadecimal encoding of sha3-384 encrypted string
func HmacSHA3512 ¶
HmacSHA3512 returns a hexadecimal encoding of sha3-512 encrypted string
func HmacSHA384 ¶
HmacSHA384 returns a hexadecimal encoding of sha384 encrypted string
func HmacSHA512 ¶
HmacSHA512 returns a hexadecimal encoding of sha512 encrypted string
func MD5Sixteen ¶
MD5Sixteen Returns a 16-bit MD5 encrypted string
func MD5SixteenToLower ¶
MD5SixteenToLower Returns a 16-digit uppercase MD5 encrypted string
func MD5SixteenToUpper ¶
MD5SixteenToUpper Returns a 16-digit uppercase MD5 encrypted string
func MD5ToLower ¶
MD5ToLower Return MD5 lowercase encrypted string
func MD5ToUpper ¶
MD5ToUpper Return MD5 uppercase encrypted string
func PasswordHash ¶
PasswordHash returns the bcrypt hash of the password at the given cost. PasswordHash does not accept passwords longer than 72 bytes
func PasswordVerify ¶
PasswordVerify compares a bcrypt hashed password with its possible plaintext equivalent. Returns nil on success, or an error on failure.
func RC4Decrypt ¶
func RC4Encrypt ¶
RC4Encrypt RC4 encryption. key: RC4 key clearText: plaintext password
func TripleDesCBCDecrypt ¶
func TripleDesCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCBCDecrypt decrypts by 3des with cbc mode.
func TripleDesCBCEncrypt ¶
func TripleDesCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCBCEncrypt encrypts by 3des with cbc mode.
func TripleDesCFBDecrypt ¶
func TripleDesCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCFBDecrypt decrypts by 3des with cfb mode.
func TripleDesCFBEncrypt ¶
func TripleDesCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCFBEncrypt encrypts by 3des with cfb mode.
func TripleDesCTRDecrypt ¶
func TripleDesCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCTRDecrypt decrypts by 3des with ctr mode.
func TripleDesCTREncrypt ¶
func TripleDesCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesCTREncrypt encrypts by 3des with ctr mode.
func TripleDesECBDecrypt ¶
func TripleDesECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesECBDecrypt decrypts by 3des with ecb mode.
func TripleDesECBEncrypt ¶
func TripleDesECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesECBEncrypt encrypts by 3des with ecb mode.
func TripleDesOFBDecrypt ¶
func TripleDesOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesOFBDecrypt decrypts by 3des with ofb mode.
func TripleDesOFBEncrypt ¶
func TripleDesOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TripleDesOFBEncrypt encrypts by 3des with ofb mode.
func TwofishCBCDecrypt ¶
func TwofishCBCDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCBCDecrypt Twofish CBC decryption with key, iv and padding
func TwofishCBCEncrypt ¶
func TwofishCBCEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCBCEncrypt Twofish CBC encryption with key, iv and padding
func TwofishCFBDecrypt ¶
func TwofishCFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCFBDecrypt Twofish CFB decryption with key, iv and padding
func TwofishCFBEncrypt ¶
func TwofishCFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCFBEncrypt Twofish CFB encryption with key, iv and padding
func TwofishCTRDecrypt ¶
func TwofishCTRDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCTRDecrypt Twofish CTR decryption with key, iv and padding
func TwofishCTREncrypt ¶
func TwofishCTREncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishCTREncrypt Twofish CTR encryption with key, iv and padding
func TwofishECBDecrypt ¶
func TwofishECBDecrypt(src, key []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishECBDecrypt Twofish ECB decryption with key and padding
func TwofishECBEncrypt ¶
func TwofishECBEncrypt(clearText, key []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishECBEncrypt Twofish ECB encryption with key and padding
func TwofishOFBDecrypt ¶
func TwofishOFBDecrypt(src, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishOFBDecrypt Twofish OFB decryption with key, iv and padding
func TwofishOFBEncrypt ¶
func TwofishOFBEncrypt(clearText, key, iv []byte, padding paddings.CipherPadding) ([]byte, error)
TwofishOFBEncrypt Twofish OFB encryption with key, iv and padding
Types ¶
This section is empty.