Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# string to sha256

public static String sha256_hash(String value) {
  StringBuilder Sb = new StringBuilder();

  using (SHA256 hash = SHA256Managed.Create()) {
    Encoding enc = Encoding.UTF8;
    Byte[] result = hash.ComputeHash(enc.GetBytes(value));

    foreach (Byte b in result)
      Sb.Append(b.ToString("x2"));
  }

  return Sb.ToString();
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: Error inflating class android.support.constraint.ConstraintLayout 
Csharp :: random from list c# 
Csharp :: how to change particle system rate over time unity 
Csharp :: string to enum c# 
Csharp :: openfiledialog c# 
Csharp :: C# cycle through directory 
Csharp :: check if number is even or odd c# 
Csharp :: c# print out whole object 
Csharp :: how to reference scripts in other scenes unity 
Csharp :: random number generator c# 
Csharp :: stop process c# 
Csharp :: c# get object property value by name 
Csharp :: how to instantiate as child unity 
Csharp :: c# create array of number from number 
Csharp :: if get key down unity 
Csharp :: unity mouse disapear 
Csharp :: how to choose a random child in a gameobject unuity 
Csharp :: remove all text after string c# 
Csharp :: how to make a pause feautre in unity 
Csharp :: Considerando um projeto C# e o uso do Entity Framework, após realizar uma alteração em um registro, qual o método que deve ser chamado para salvar as 
Csharp :: change image source wpf 
Csharp :: unity c# class addition syntax 
Csharp :: c# shuffle string array 
Csharp :: c# winforms textbox readonly 
Csharp :: aabb collision with direction 
Csharp :: check if panel has controler c# 
Csharp :: unity 2d looka tt mouse 
Csharp :: how to configure session timeout in asp.net core 
Csharp :: how to convert iformfile to byte array c# 
Csharp :: loop over all values in enum 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =