Format:
Recent snippets for: tomy ismail
using System; using System.Security.Cryptography; using System.Text; using System.Web; public static string HashedString(string cleanString, string salt) { if (String.IsNullOrEmpty(cleanString)) { return String.Empty; } //Bytes to hash
253 Views
no comments
using System.Security.Cryptography; using System.Text; using System.Web; public static string SHA256Encrypt(string source, int digitRandom) { string outputHash = String.Empty; try {
291 Views
no comments
public static string RandomAlphaNumeric(int digits) { Random random = new Random(); byte[] buffer = new byte[digits / 2]; random.NextBytes(buffer); string result = String.Concat( buffer.Select(x => x.ToString("X2")).ToArray()); if (digits % 2 == 0) { return result;
255 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
