Documentation
      ¶
    
    
  
    
  
    Index ¶
- func AESDecrypt(ciphertext, key []byte) ([]byte, error)
 - func AESEncrypt(plantText, key []byte) ([]byte, error)
 - func GetMD5(str string) (md5str string)
 - func HmacMD5(secret string, data []byte) []byte
 - func HmacSHA1(secret string, data []byte) []byte
 - func Keccak256(data ...[]byte) []byte
 - func MD5(data []byte) []byte
 - func PKCS7Padding(ciphertext []byte, blockSize int) []byte
 - func PKCS7UnPadding(plantText []byte, blockSize int) []byte
 - func SHA1(data []byte) []byte
 - func SHA256(data []byte) []byte
 - type AESProtocal
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
AESDecrypt AES加密 plantText 密码 key密钥 16字节,24字节,32字节 return 明文
func AESEncrypt ¶
AESEncrypt AES加密 plantText 明文 key密钥 16字节,24字节,32字节 return 密文
func PKCS7Padding ¶
PKCS7Padding PKCS7填充 ciphertext 明文 blockSize 分组大小 return 填充后的明文
func PKCS7UnPadding ¶
PKCS7UnPadding PKCS7清理填充 ciphertext 填充后的明文 blockSize 分组大小 return 恢复后的明文
Types ¶
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. 
         | 
      Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202. | 
 Click to show internal directories. 
   Click to hide internal directories.