c# Programming Glossary: system.security.cryptography
Encrypting & Decrypting a String in C# http://stackoverflow.com/questions/10168240/encrypting-decrypting-a-string-in-c-sharp along with using the PasswordDeriveBytes function of the System.Security.Cryptography namespace which will generate your encryption key using a standard.. using System using System.Linq using System.Text using System.Security.Cryptography using System.IO namespace EncryptStringSample public static..
Create “Hello Wold” WebSocket example http://stackoverflow.com/questions/10200910/create-hello-wold-websocket-example System using System.Net.Sockets using System.Net using System.Security.Cryptography using System.Threading namespace ConsoleApplication1 class Program..
(Attempting to) migrate from WSE 3.0 to WCF for client code http://stackoverflow.com/questions/10589561/attempting-to-migrate-from-wse-3-0-to-wcf-for-client-code using System.IO using System.Xml using System.Security.Cryptography namespace Webservices20.BindingExtensions class UsernameExEncoderBindingElement..
What is the fastest way to create a checksum for large files in C# http://stackoverflow.com/questions/1177607/what-is-the-fastest-way-to-create-a-checksum-for-large-files-in-c-sharp attempt was something like this using System.IO using System.Security.Cryptography private static string GetChecksum string file using FileStream..
Hashing a string with Sha256 http://stackoverflow.com/questions/12416249/hashing-a-string-with-sha256 sha256 I'm using the following code using System using System.Security.Cryptography using System.Text public class Hash public static string getHashSha256..
Simple 2 way encryption for C# http://stackoverflow.com/questions/165808/simple-2-way-encryption-for-c-sharp this class in place. using System using System.Data using System.Security.Cryptography using System.IO public class SimpleAES Change these keys private..
How can I generate a cryptographically secure pseudorandom number in C#? http://stackoverflow.com/questions/1668353/how-can-i-generate-a-cryptographically-secure-pseudorandom-number-in-c c# cryptography share improve this question using System.Security.Cryptography ... RandomNumberGenerator rng new RNGCryptoServiceProvider byte..
Encryption compatable between Android and C# http://stackoverflow.com/questions/2090765/encryption-compatable-between-android-and-c-sharp Here's my C# class using System using System.Text using System.Security.Cryptography namespace smsfwdClient public class Crypto private ICryptoTransform.. encodeDigest string text MD5CryptoServiceProvider x new System.Security.Cryptography.MD5CryptoServiceProvider byte data Encoding.ASCII.GetBytes..
How do I create an MD5 hash digest from a text file? http://stackoverflow.com/questions/2150455/how-do-i-create-an-md5-hash-digest-from-a-text-file question Here's the routine I'm currently using. using System.Security.Cryptography public string HashFile string filePath using FileStream fs..
Randomize a List<T> in C# http://stackoverflow.com/questions/273313/randomize-a-listt-in-c-sharp in your shuffles use the random number generator in System.Security.Cryptography like so using System.Security.Cryptography ... public static.. generator in System.Security.Cryptography like so using System.Security.Cryptography ... public static void Shuffle T this IList T list RNGCryptoServiceProvider..
Using AES encryption in C# http://stackoverflow.com/questions/273452/using-aes-encryption-in-c-sharp its plagiarized glory using System using System.IO using System.Security.Cryptography namespace RijndaelManaged_Example class RijndaelExample public..
PBKDF2 in Bouncy Castle C# http://stackoverflow.com/questions/3210795/pbkdf2-in-bouncy-castle-c-sharp a RNGCryptoServiceProvider . Make sure to reference the System.Security.Cryptography namespace. RNGCryptoServiceProvider rng new RNGCryptoServiceProvider..
Is it possible to programmatically generate an X509 certificate using only C#? http://stackoverflow.com/questions/3770233/is-it-possible-to-programmatically-generate-an-x509-certificate-using-only-c return DotNetUtilities.ToX509Certificate newCert .Export System.Security.Cryptography.X509Certificates.X509ContentType.Pkcs12 password Unit test.. password Unit test using System.Security.Cryptography using System.Security.Cryptography.X509Certificates using Microsoft.VisualStudio.TestTools.UnitTesting.. Unit test using System.Security.Cryptography using System.Security.Cryptography.X509Certificates using Microsoft.VisualStudio.TestTools.UnitTesting..
Implementing RSA in C# http://stackoverflow.com/questions/384401/implementing-rsa-in-c-sharp i have done so far using System using System.Text using System.Security.Cryptography namespace Agnus.Cipher public class RSA private byte plaintextBytes..
Encrypt cookies in ASP.NET http://stackoverflow.com/questions/4360839/encrypt-cookies-in-asp-net this question Why not just use the encryption found in System.Security.Cryptography to encrypt and decrypt the cookie name and value when it's sensitive..
How to generate HMAC-SHA1 in C#? http://stackoverflow.com/questions/6067751/how-to-generate-hmac-sha1-in-c using System.Linq using System.Text using System.Security.Cryptography using System.IO namespace ConsoleApplication1 class Program..
How to generate Rijndael KEY and IV using a passphrase? http://stackoverflow.com/questions/6482883/how-to-generate-rijndael-key-and-iv-using-a-passphrase I found on internet. It just works using System.IO using System.Security.Cryptography private static readonly byte SALT new byte 0x26 0xdc 0xff 0x00..
|