Post

Replies

Boosts

Views

Activity

Reply to Swift AES CBC 256 Encryption With Static 32bit Key and 32bit IV
Hi, @eskimo! I'm trying do decrypt some data using AES CBC. I found your swift wrapper around CommonCrypto’s AES CBC support. However I'm struggling to convert my key, iv to [UInt8] format: I have: var encKey = "686d5e547e2d91f523878ba0bf344157" var cyphertext = "bad44962ac98600d00005ae917f1" var IV = "B43522F2228CD2FC41600D0000" var bytesKey = encKey. how to covert it var bytesCyphertext = cyphertext. how to covert it var bytesIV = IV. how to covert it let plaintext = try? QCCAESPadCBCDecrypt(key: bytesKey, iv: bytesIV, cyphertext: bytesCyphertext) So I'm trying to use your QCCAESPadCBCDecrypt example function and I need to convert these strings to [UInt8]. Thank you very much for the example above!
May ’23