Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string hash = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(input, "md5");
- string hash = Convert.ToBase64String(newSystem.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(System.Text.Encoding.UTF8.GetBytes(input)));
- string hash =
- Convert.ToBase64String
- (new System.Security.Cryptography.MD5CryptoServiceProvider()
- .ComputeHash
- (System.Text.Encoding.UTF8.GetBytes
- (input)
- )
- );
- token = __import__('md5').new(var1 + var2).hexdigest()
- token = md5.new(var1 + var2).hexdigest()
- hash = (new MD5).hash("some value")
- Dim MD5 As New System.Security.Cryptography.MD5CryptoServiceProvider() : Dim HashBytes() As Byte : Dim MD5Str As String = "" : HashBytes = MD5.ComputeHash(System.Text.Encoding.UTF8.GetBytes("MyString")) : For i As Integer = 0 To HashBytes.Length - 1 : MD5Str &= HashBytes(i).ToString("x").PadLeft(2, "0") : Next
Add Comment
Please, Sign In to add comment