摘要:
直接上代码: package tools import ( "bytes" "crypto/aes" "crypto/cipher" ) func PKCS5Padding(ciphertext []byte, blockSize int) []byte { padding := blockSize 阅读全文
摘要:
当使用AES加解密的时候报了这个错误 原因是AES的key字节长度不对 看源码 // NewCipher creates and returns a new cipher.Block. // The key argument should be the AES key, // either 16, 阅读全文