REST API - Decrypting AES Encrypted field

kosi
Kilo Contributor

Hi,

To decrypt an AES encrypted field through REST API, we have one issue of understanding the IV(Initialization Vector) and how to use that to decrypt the first block of 16 characters.

Encrypted field from the REST response JSON (description form field):

"description":"84d1d37bdb7a3200750573ffbf96191f:0aZdRxsIqSpFtuszNr73na/J9JuMLNB0J6T2f2FrV0sUlMmbW4prbZMmXGnLU4W6CDlb5F1lb8js\r\nRHw6tfyZd5ZL//ZUlozE916wvP+zd+uUfjpk2Bl9o2uAu+1bsNoAVdtP5m5fbnkjxf9yLRzREVVO\r\nIwYQOxNI/CeX2dzF/Uc="

Encryption method: AES 128 Bit.

Password: 1234567890123456

Original Text: "new description for new incident.

  1. www.google.com

lets see if the initial part is same or it changes for this new incident"

Decrypted output : "bGOn>22H~KH:38/_for new incident.

  1. www.google.com

lets see if the initial part is same or it changes for this new incident"

Decryption Used: AES/CBC/PKCS5Padding

How to decrypt the first block (that is highlighted in Red ). In other words, how to interpret 84d1d37bdb7a3200750573ffbf96191f in terms of IV to decrypt the first 16 characters ?

Any help would be appreciated.

6 REPLIES 6

kosi
Kilo Contributor

Where from the properties we can get the configured IV(Initialization Vector) for decrypting field ?


vishnup
Tera Contributor

Can i Know the process how it is resolved?