"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Let me get this straight... You have a byte string, your plaintext, it being (as hex bytes) 38-32-33-35, or (as ASCII chars) '8235'. You send it to your encryption server, and you get back a byte string, your cyphertext, it being (as base64) 'vY+TqCu5/Wdg6O+ilDqHVQ==', or (as hex bytes) bd-8f-93-a8-2b-b9-fd-67-60-e8-ef-a2-94-3a-87-55. Then you have something in a field in a database, that should be the same cyphertext, stored as hex digits in a CHAR column. The value you have is (as hex digits) 63-9D-87-9F-22-4C-A2-A1-BA-73-CC-48-84-DB-D3-62. It is not the same value as the one corresponding to the base64-encoded string you posted. Are you sure you are reading from the correct row in the table? Otherwise I missed some steps in your process. -- dakkar - Mobilis in mobile Most of my code is tested... In reply to Re^7: convert hexadecimal value to encrypted string
by dakkar
|
|