Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
SHA加密
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Security.Cryptography; using System.Text; namespace Rextester { public class Program { public static void Main(string[] args) { string result = GetSHA256hash("111abc"); Console.WriteLine(result); } public static string GetSHA256hash(string input) { byte[] clearBytes = Encoding.UTF8.GetBytes(input); SHA256 sha256 = new SHA256Managed(); sha256.ComputeHash(clearBytes); byte[] hashedBytes = sha256.Hash; sha256.Clear(); string output = BitConverter.ToString(hashedBytes).Replace("-", "").ToLower(); return output; } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Dependency Injection
Next Letter
1
QuickSort
Singleton Design Pattern
Min Max Sum Avg
Pet Name Generator
Plt-D v.0.9.1
test1.m
simultQ
Please log in to post a comment.