func decrypt() -> String {
var result = ""
do {
let aes = try AES(key: Constant.AES.key.bytes, blockMode: .CBC(iv: Constant.AES.key.bytes))
let temp = try aes.decrypt(self.bytes)
result = String(bytes: temp, encoding: .utf8)!
} catch {
print("Error: \(error)")
}
return result
}
无法解密使用过的很多lib,如cryptoswift和cyrptoJS swift