TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
cakewalkr7
NA
9
0
how do you decode?
Sep 29 2003 9:32 AM
I have found many examples of how to encode a string with different hash algorithms... but I can't find anything on getting the original string out once I've encoded it. Here's the code I've got so far. private string CreateHashValue(string val) { UnicodeEncoding ue = new UnicodeEncoding(); byte[] valBytes = ue.GetBytes(val); MD5 m = new MD5CryptoServiceProvider(); m.Initialize(); byte[] bytes = m.ComputeHash(valBytes); m = null; return ue.GetString(bytes); } I'd like to create another method like DecodeHashValue that returns the original string. Can anyone explain how I could do this? Thanks.
Reply
Answers (
1
)
Security Execption error
retrieval Certificate help