Click here to Skip to main content
15,894,124 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello
i have a window application in this application i need to convert hexa decimal value into alphanumerical value , can any body tell me how to do
Posted
Comments
CHill60 8-Jul-15 6:11am    
Your question is not entirely clear. If you post the code you have already tried then it might help us to understand your requirement
Member 10273293 8-Jul-15 6:23am    
my coding is this
private void button1_Click(object sender, EventArgs e)
{
string hex2 = textBox1.Text;
BigInteger dec2 = BigInteger.Parse(hex2, System.Globalization.NumberStyles.HexNumber);
textBox2.Text = dec2.ToString();
}
this coding convert hexa value into decimal value but i need this value into alphanumerical format
Richard MacCutchan 8-Jul-15 6:29am    
So what is wrong with that result?
phil.o 8-Jul-15 6:24am    
Please define an 'alphanumerical' value. What is the alphanumerical value of 1? Of 100? Of 10000?
Member 10273293 8-Jul-15 6:30am    
as example i have a password 123xyz# i have convert it into hexa value like this 0cdfb1d903c2ecbc67208b7a4f8ec83181718a
now can i have convert this into again 123xyz# format

1 solution

SQL
as example i have a password 123xyz# i have convert it into hexa value like this 0cdfb1d903c2ecbc67208b7a4f8ec83181718a
now can i have convert this into again 123xyz# format

If it's a password, then the whole idea is that you don't. What you should do is use a Hashing algorithm on the "raw text" and store the hash value.
When you want to check if the user entered the correct password, you again use the hashing algorithm, and compare the two hash values. If they are the same, it's fine.
At no time do you try to "unhash" the stored value and compare the resulting text.

See here: Password Storage: How to do it.[^]
 
Share this answer
 

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