摘要:
直接上代码: package tools import ( "bytes" "crypto/aes" "crypto/cipher" ) func PKCS5Padding(ciphertext []byte, blockSize int) []byte { padding := blockSize 阅读全文
posted @ 2021-07-18 12:21
唯一客服系统开发笔记
阅读(578)
评论(0)
推荐(0)
摘要:
当使用AES加解密的时候报了这个错误 原因是AES的key字节长度不对 看源码 // NewCipher creates and returns a new cipher.Block. // The key argument should be the AES key, // either 16, 阅读全文
posted @ 2021-07-18 12:18
唯一客服系统开发笔记
阅读(1488)
评论(0)
推荐(0)
浙公网安备 33010602011771号