Documentation ¶
Index ¶
- Constants
- func AesCBCDecrypt(src, key, iv []byte, padding string) ([]byte, error)
- func AesCBCEncrypt(src, key, iv []byte, padding string) ([]byte, error)
- func AesECBDecrypt(src, key []byte, padding string) ([]byte, error)
- func AesECBEncrypt(src, key []byte, padding string) ([]byte, error)
- func CBCDecrypt(block cipher.Block, src, iv []byte, padding string) ([]byte, error)
- func CBCEncrypt(block cipher.Block, src, iv []byte, padding string) ([]byte, error)
- func Des3CBCDecrypt(src, key, iv []byte, padding string) ([]byte, error)
- func Des3CBCEncrypt(src, key, iv []byte, padding string) ([]byte, error)
- func Des3ECBDecrypt(src, key []byte, padding string) ([]byte, error)
- func Des3ECBEncrypt(src, key []byte, padding string) ([]byte, error)
- func DesCBCDecrypt(src, key, iv []byte, padding string) ([]byte, error)
- func DesCBCEncrypt(src, key, iv []byte, padding string) ([]byte, error)
- func DesECBDecrypt(src, key []byte, padding string) ([]byte, error)
- func DesECBEncrypt(src, key []byte, padding string) ([]byte, error)
- func ECBDecrypt(block cipher.Block, src []byte, padding string) ([]byte, error)
- func ECBEncrypt(block cipher.Block, src []byte, padding string) ([]byte, error)
- func KeyGenerator(src []byte, blockSize int) []byte
- func Md5(str string, rawOutput ...bool) string
- func NewECBDecrypter(b cipher.Block) cipher.BlockMode
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- func PKCS5Padding(src []byte, blockSize int) []byte
- func PKCS5Unpadding(src []byte) []byte
- func PKCS7Padding(src []byte, blockSize int) []byte
- func PKCS7UnPadding(src []byte) []byte
- func Padding(padding string, src []byte, blockSize int) []byte
- func SHA1(data []byte) []byte
- func Sha1(str string) string
- func UnPadding(padding string, src []byte) []byte
- func ZerosPadding(src []byte, blockSize int) []byte
- func ZerosUnPadding(src []byte) []byte
Constants ¶
View Source
const PKCS5_PADDING = "PKCS5"
View Source
const PKCS7_PADDING = "PKCS7"
View Source
const ZEROS_PADDING = "ZEROS"
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
AesCBCDecrypt
func AesCBCEncrypt ¶
AesCBCEncrypt
func AesECBDecrypt ¶
AesECBDecrypt
func AesECBEncrypt ¶
AesECBEncrypt
func CBCDecrypt ¶
CBCDecrypt
func CBCEncrypt ¶
CBCEncrypt
func Des3CBCDecrypt ¶
Des3CBCDecrypt
func Des3CBCEncrypt ¶
Des3CBCEncrypt
func Des3ECBDecrypt ¶
Des3ECBDecrypt
func Des3ECBEncrypt ¶
Des3ECBEncrypt
func DesCBCDecrypt ¶
DesCBCDecrypt
func DesCBCEncrypt ¶
DesCBCEncrypt
func DesECBDecrypt ¶
DesECBDecrypt
func DesECBEncrypt ¶
DesECBEncrypt
func KeyGenerator ¶
func Md5 ¶
Md5 Calculate the md5 hash of a string If the optional rawOutput is set to true, then the md5 digest is instead returned in raw binary format with a length of 16.
func NewECBDecrypter ¶
NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block.
func NewECBEncrypter ¶
NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.
func PKCS5Padding ¶
func PKCS5Unpadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ZerosPadding ¶
func ZerosUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.