Click here to Skip to main content
15,883,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a encrypted string i.e.
0x00D25D1B005BBC4E86FD45C7C3DDCC3701000000ED7007675C13943EC40EDF3E0BD14055110EBFE82A69C38F53DC908223CA472D

how do i convert this tobase64string?

Please help :(
Posted
Updated 25-Dec-11 20:08pm
v2

 
Share this answer
 
v3
Comments
erogaki 26-Dec-11 2:03am    
thats for 8 bit values. is there anything to convert 128 bit value to a base64string
RaviRanjanKr 26-Dec-11 16:51pm    
5+
use the below code

System.Convert.ToBase64String(ASCIIEncoding.UTF8.GetBytes("
0x00D25D1B005BBC4E86FD45C7C3DDCC3701000000ED7007675C13943EC40EDF3E0BD14055110EBFE82A69C38F53DC908223CA472D"))


Result:
MHgwMEQyNUQxQjAwNUJCQzRFODZGRDQ1QzdDM0REQ0MzNzAxMDAwMDAwRUQ3M<br />
DA3Njc1QzEzOTQzRUM0MEVERjNFMEJEMTQwNTUxMTBFQkZFODJBNjlDMzhGNTNEQzkwODIyM0NBNDcyRA==
 
Share this answer
 
v2
Comments
RaviRanjanKr 26-Dec-11 16:50pm    
5+

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900