Encryption and Decryption using AES Algorithm
Hi,
For an application we are working on we have AES encryption algorithm written at iOS side. Input string will get encrypted from iOS side and using Webservices it is communicating with Database. I have plsql code written using "DBMS_CRYPTO" package for encryption and decryption using AES algorithm.
My requirement is to decrypt the string i received from iOS side using AES algorithm. We are using same Algorithm, Key, Cipher Chain Mode and Padding form at both Database and iOS side.
Issue is iOS sends encrypted string in BYTE format and from database side "DECRYPT" function takes input in RAW format. How can i convert encrypted string coming in "BYTE" format to "RAW" format ??
e.g.
Input String: PriyankaP
Encrypted String coming from iOS : TTl2kEkCV2zh8ocac4QQlQ==
How can i convert it to RAW data type and get decrypted string using PL/SQL code? Please guide..
Regards,
Priyanka