|
|
C# Encryption Examples
- Encrypt File to .p7m
- Decrypt a .p7m (PKCS7) File
- Sign a File to Create a .p7s File
- Verify .p7s and Extract Original File
- Quoted-Printable Encode/Decode a String
- Base64 Encode/Decode a String
- Hash Algorithms: SHA-1, HAVAL, MD2, MD5, SHA-256, SHA-384, SHA-512
- String Compression
- SHA-1 Hash a String (XML Document)
- MD5 Hash a String
- Sign a File to Create a .p7m File
- Sign with .pfx to create .p7s, Verify with .cer
- ARC4 Encryption (ARCFOUR)
- Encrypting/decrypting a data stream.
- Generate Psuedo-Random Data using ARC4 as a PRNG
- HMAC MD5 to Match RFC 2022 Test Vectors
- HMAC SHA-1 to Match RFC 2022 Test Vectors
- ASCII / ANSI Secret Key in Symmetric Encryption
- Create .p7s Signature with HSM / Smartcard
- File Encryption / Decryption
- 3DES Encryption (Triple-DES, 168-bit, TDEA, TDES)
- Hash File: SHA-1, HAVAL, MD2, MD5, SHA-256, SHA-384, SHA-512
- Re-Encode a String (Hex, Base64, URL, etc)
- EncryptEncoded: Decode-->Encrypt Bytes-->Encode
- AES Encryption
- Blowfish Encryption, ECB, CBC, CFB modes
- 3DES Encryption, ECB, CBC modes
- 56-bit DES Encryption, ECB, CBC modes
- Twofish Encryption - 128-bit, 192-bit, 256-bit
- RC2 Encryption and Decryption
- ARC4 Encryption (ARCFOUR)
- Generate Secret Key from Password
- AES Encryption to Match PHP's Mcrypt Extension
- Blowfish Encryption to Match PHP's Mcrypt Extension
- Encrypt a File using
128-bit Rijndael (AES)
- Blowfish Encrypt a Byte Array
- Encrypt String to URL-Encoded Encrypted String
- Encrypt Bytes to Base64-Encoded Encrypted String
- Simple Base64 Conversion
- Hexidecimalize a String
- URL-Encode a String
- Base64 Decode a String
- URL Decode a String
- Hex Decode a String
- SHA-1 Hash Byte Array to String
- MD5 Hash a String to a Base64, Hex, or URL-Encoded String
- MD2 Hash a String to a Base64, Hex, or URL-Encoded String
- Haval Hash a String to a Base64, Hex, or URL-Encoded String
- BZIP2 Compress Byte Array to Base64-Encoded Compressed String
- BZIP2 Compress + AES Encrypt + Base64-Encode
- 3DES Public-Key Encryption using Digital Certificates
- AES Compress and Encrypt
- 256-bit AES Encrypt to a Hex String
- C# Blowfish CBC Encryption to Match Published Test Vectors
- C# Blowfish ECB Encryption to Match Published Test Vectors
- OMA DRM: Create DCF
- OMA DRM: Read DCF
- C# AES String-to-String Encryption
- Match Java JCE AES Encryption Results (ECB mode)
- Match Java JCE AES CBC Encryption Results
The following examples use the older Chilkat.Crypt
class
|