Thread: new KeyGenMe
View Single Post
  #7  
Old 09-09-2013, 21:04
LordCoder LordCoder is offline
TEAM REiS
 
Join Date: May 2013
Location: TEAM REiS
Posts: 55
Rept. Given: 39
Rept. Rcvd 238 Times in 36 Posts
Thanks Given: 1
Thanks Rcvd at 15 Times in 9 Posts
LordCoder Reputation: 200-299 LordCoder Reputation: 200-299 LordCoder Reputation: 200-299
@GIV SHA256 difficult in VB.NET?

Quote:
Public Function EncryptSHA256Managed(ByVal ClearString As String) As String
Dim uEncode As New UnicodeEncoding()
Dim bytClearString() As Byte = uEncode.GetBytes(ClearString)
Dim sha As New _
System.Security.Cryptography.SHA256Managed()
Dim hash() As Byte = sha.ComputeHash(bytClearString)
Dim sBuilder As New StringBuilder
For Each b As Byte In hash
sBuilder.AppendFormat("{0:x2} ", b)
Next
Return sBuilder.ToString()
End Function
__________________
TEAM REiS - Reverse Engineering iN Software
Reply With Quote
The Following User Gave Reputation+1 to LordCoder For This Useful Post: