Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
MY
//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; namespace Rextester { public class Program { public static void Main(string[] args) { string code = CreateHexStringHMAC(86, "x"); Console.WriteLine(code); } public static string CreateHexStringHMAC(int applicationid, string verificationkey) { // add current date and the applicationid to a data string string data = DateTime.Now.ToString("yyyyMMdd") + applicationid.ToString(); System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding(); HMACMD5 myHMACMD5 = new HMACMD5(encoding.GetBytes(verificationkey)); Byte[ ] byteArrayHMAC = myHMACMD5.ComputeHash(encoding.GetBytes(data)); string hexStringHMAC = string.Empty; foreach (byte bt in byteArrayHMAC) { hexStringHMAC += bt.ToString("X").PadLeft(2, '0'); } return hexStringHMAC; } } }
run
|
edit
|
history
|
help
0
saxasd
ANQ Bug with Feb month display
SafeSquareRoot.java
internal access specifier
new
Bitcoins expectative :'v
1234
test
Download a .NET assembly, and execute a static, parameterless method.
sdfgthyjuiujy7htgrf