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
Mayur Gujrathi
407
3.9k
1m
encryption decryption
May 26 2011 7:08 AM
dear all i am encrypting my password like this
but dont know how to decrypt
Function HashPassword(ByVal password As String) As String
Dim hashedPassword As String
Dim hashProvider As SHA256Managed
Try
Dim passwordBytes() As Byte
Dim hashBytes() As Byte
passwordBytes = System.Text.Encoding.Unicode.GetBytes(password)
hashProvider = New SHA256Managed
hashProvider.Initialize()
passwordBytes = hashProvider.ComputeHash(passwordBytes)
hashedPassword = Convert.ToBase64String(passwordBytes)
Finally
If Not hashProvider Is Nothing Then
hashProvider.Clear()
hashProvider = Nothing
End If
End Try
Reply
Answers (
8
)
Need a one line code to swap numbers
Using command line(cmd.exe)