摘要: 直接上代码: package tools import ( "bytes" "crypto/aes" "crypto/cipher" ) func PKCS5Padding(ciphertext []byte, blockSize int) []byte { padding := blockSize 阅读全文
posted @ 2021-07-18 12:21 唯一客服系统开发笔记 阅读(549) 评论(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 唯一客服系统开发笔记 阅读(1347) 评论(0) 推荐(0) 编辑