Click here to Skip to main content
13,201,763 members (72,027 online)
Rate this:
Please Sign up or sign in to vote.
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 7:36am
ledtech3 24-May-12 15:17pm
This Page Might help Some.
Bernhard Hiller 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 24 May 2012
Copyright © CodeProject, 1999-2017
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