我有key = "somesomesomesome".md5()
,长度为32个字节,iv
为空,尝试使用CryptoSwift解密加密的字符串:
let aes = try AES(key: key.bytes, blockMode: CBC(iv: []), padding: .noPadding)
let result = try aes.decrypt(encrypted)
let decrypted = String(bytes: result, encoding: .utf8)
获取错误“ dataPaddingRequired”。我在做什么错了?