Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Encryption format
Hi i have a requirement where i want to encryption the the string like "this is my test application" using a key provided "1DB5-709D-2ADC-5126-AE94-512F-D69D-3E70" and then encrypt the data as below format "8a7d-95b3-1b69-450d-e7af-2adf-3a78-4b68-0481-98f1".
I have tried the normal way of encryption where i am only able to get the output in the below format "23-f4-r2-g3-22-4h".
But i want the format to be as "8a7d-95b3-1b69-450d-e7af-2adf-3a78-4b68-0481-98f1".
At least provide me how i can search in Google,I don't understand how to search it.
Thanks In Advance
Posted 24-May-12 8:36am
ledtech3 at 24-May-12 15:17pm
This Page Might help Some.
Bernhard Hiller at 25-May-12 7:02am
That cannot be correct. Your input has 16 bytes (assuming that it is in hexadecimal representation), while your output has 20 bytes - that's not possible.
And your required output format: how are data represented there? I cannot recognise it,"g3" and "4h" are not hexadecimal representations of bytes.
Bala Balaji Raju I at 25-May-12 7:17am
Hi thanks for the reply. for better clarity here is the input n opt that i am getting
the current output with AES enxryption with base64 formatiing is
but where i need the values to be like this
and the key ia m using remains the same "1DB5-709D-2ADC-5126-AE94-512F-D69D-3E70".
Hope this information is bit clear.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170

Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 24 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100