Link to home
Start Free TrialLog in
Avatar of inzaghi
inzaghi

asked on

Conversion from base64 encoded string in java to varchar in oracle

hi,

We have encrypted a value in java using des3 with a specific key.  We have converted this byte array to
a base64 encoded string value.

Now we want to decrypt this data using des3 in oracle.
To do this do we
1) convert String to raw value using UTL_RAW.CAST_TO_RAW(base64String)
2) Decode base 64 raw value using UTL_DECODE.BASE64_ENCODE
3) Decrypt using des3 oracle passing in key, and value returned from 2.
4) Convert to varchar2 using UTL_RAW.CAST_TO_VARCHAR2
ASKER CERTIFIED SOLUTION
Avatar of seazodiac
seazodiac
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial