Post marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
Post marked as solved with 1 replies, 0 views
Replied In
How to decrypt in swift using CommonCrypto
Ok I found the issue. Before converting it to a UInt8 Array you need to convert it to a data object and then convert it to unit8 array for feeding. So the code in swift should look like this,
let str = "SJeOvypKWad9GzUD2GHRig=="
let data = Data(base64Encoded: str);
let buf: [UInt8] = Array(data!)