Run Code
|
API
|
Code Wall
|
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
Number to string
adxcsxsd
C:\Documents and Settings\Админ\Рабочий стол\ШЭ информатика
12
Class work
Swiss Infotech Tutorial
Find if the given word occurs in the string necessarily in that order.
⁸
asdfghyjuytt4wed
GetMyAppintmentData