Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vjjdev
Reel Rookie

roEVPCipher : Am I doing something wrong?

Hi,
I have to decrypt a aes-128-cbc ciphertext(encrypted json string) in my project.
I was successfully able to decrypt it using roEVPCipher but almost first 15 charcters are coming out as a garbage, rest of the data looks good.

I am able to successfully decrypt the whole string without any issues on open SSL and a .net application utility.

Wondering if anyone has any similar experience or am I missing any obvious step.

Thanks,
vjj
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: roEVPCipher : Am I doing something wrong?

Sounds like you're using the wrong initialization vector.

--Mark
0 Kudos
vjjdev
Reel Rookie

Re: roEVPCipher : Am I doing something wrong?

Thank you for your quick response Mark.
My initialization vector is an empty string and I haven't use any iv in other utilities either.
0 Kudos