Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# system cryptography hash string

    public static string StringSha256Hash(string text) =>
        string.IsNullOrEmpty(text) ?
      	string.Empty : // Return string back if its empty
			BitConverter.ToString( // Encrypt
              new System.Security.Cryptography.SHA256Managed().ComputeHash(
              System.Text.Encoding.UTF8.GetBytes(text))
            ).Replace("-", string.Empty);
Comment

PREVIOUS NEXT
Code Example
Csharp :: do while loop in c# 
Csharp :: How to create a new object instance from a Type 
Csharp :: generate a dropdown list from array data using razor .net mvc 
Csharp :: c# temporary files 
Csharp :: static constructor in c# 
Csharp :: c# datagridview center cell text 
Csharp :: c# list get last element 
Csharp :: c# get all occurrences of a string 
Csharp :: StringFormat C# 
Csharp :: array sum c# 
Csharp :: c# insert backslash in string 
Csharp :: linq select to list 
Csharp :: c# string across multiple lines 
Csharp :: c# datediff 
Csharp :: How to execute script in C# 
Csharp :: install active directory windows server 2019 powershell 
Csharp :: dbset 
Csharp :: strong email validation regex c# 
Csharp :: remove numericUpDown arrows 
Csharp :: binary tree c# 
Csharp :: access denied tring to save a file uwp xamarin 
Csharp :: float into int unoity 
Csharp :: c# driver.findelement to look for declared variable 
Csharp :: c# compare months 
Csharp :: c# ping all machines on local network 
Csharp :: how to change argument of function in f# 
Csharp :: c# pull request 
Csharp :: wpf stackpanel horizontal 
Csharp :: ef core index attribute 
Csharp :: handle multiple threads c# 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =