I'm working on swift project that is scanning QR codes and getting encrypted AES-128 data that needs to be decrypted.
I'm using a framework that is called CryptoSwift.
I have the key and data from QR code that holds the encrypted data.
var key = "B7zqj4TAXnPevYZAR4T26969"
var qrData = "zWDzClfre4aOjTumzGsnpqh4Sje7sFsbKceA3/OSH3nKRwc7/6fYUajBr/bLh9BB"
Edit: Sorry, I forgot to mention that the encryption made with:
- Cipher : AES-128
- Mode of Operation : CBC
- Padding : PKCS7
- Key derived from : Simple decoding
I'd like to know what approaches I should do in order to decrypt this QR data.
Any help would be nice.