Documentation ¶
Index ¶
- func CBCDecrypt(key, data []byte) ([]byte, error)
- func CBCDecryptString(key, data string) (string, error)
- func CBCEncrypt(key, data []byte) ([]byte, error)
- func CBCEncryptString(key, data string) (string, error)
- func GetDecryptMsg(privateKeyString, data string) ([]byte, error)
- func GetRSAKey(bits int) (string, string, error)
- func GetRSASignature(privateKeyBytes, msg []byte, hashFunc crypto.Hash) (string, error)
- func MD5(str string) string
- func MD5Large(str string) (string, error)
- func MD5Small(str string) string
- func MD5stream(r io.Reader) (string, error)
- func RSADecrypt(privateKeyBytes, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CBCDecrypt ¶
CBCDecrypt
@Description: AES CBC Decryption @param key @param data @return []byte @return error
func CBCDecryptString ¶
CBCDecryptString
@Description: AES CBC Decryption @param key @param data @return string @return error
func CBCEncrypt ¶
CBCEncrypt
@Description: AES CBC Encryption @param key @param data @return []byte @return error
func CBCEncryptString ¶
CBCEncryptString
@Description: AES CBC Encryption @param key @param data @return string @return error
func GetDecryptMsg ¶
GetDecryptMsg
@Description: get decrypt message @param privateKeyString @param data @return []byte @return error
func GetRSAKey ¶
GetRSAKey
@Description: get rsa key @param bits @return string @return string @return error
func GetRSASignature ¶
GetRSASignature
@Description: get rsa signature @param privateKeyBytes @param msg @param hashFunc @return string @return error
func MD5stream ¶
MD5stream
@Description: MD5 Encryption for stream @param r @return string @return error
func RSADecrypt ¶
RSADecrypt
@Description: rsa decrypt @param privateKeyBytes @param data @return []byte @return error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.