Click here to Skip to main content
Rate this: bad
good
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
IBBR192
Comments
ledtech3 at 24-May-12 15:17pm
   
This Page Might help Some.
http://msdn.microsoft.com/en-us/library/26etazsy.aspx
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
 
"41-31-55-A6-DF-BF-D8-78-B3-2D-5A-37-AD-06-B7-E4-20-6C-E6-A7-17-23-10-69-17-AC-40-F3-02-99-6D-C6-25-01-C1-34-39-F3-28-15-B5-FF-8E-E0-B4-E2-B7-F0-61-DA-DF-09-20-39-B7-BC-7F-83-51-50-49-E9-EA-CF-D7-3D-58-DB-BC-FB-B8-F2-97-AF-A6-79-89-0B-C0-7E-9F-9A-36-3D-8A-57-C4-EF-05-08-2A-66-69-83-89-69-B5-47-EA-42-29-15-24-05-D6-D9-74-96-BF-D0-73-13-EA-B2-8D-15-DA-A4-01-BB-7E-94-E9-39-15-CC-9C-4F-DF-8A-B5-18-93-C8-58-C3-10-75-35-73-EA-CE-56-C8"
 
but where i need the values to be like this
"8a7d-95b3-1b69-450d-e7af-2adf-3a78-4b68-0481-98f1-2a2d-6cf8-ca46-c9da-a1dd-1399-efca-ab55-2e81-e62f-04ee-fac1-77f5-7c79"
 
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)



Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 24 May 2012
Copyright © CodeProject, 1999-2014
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