[转]Visual C++ Encryption Examples
Visual C++ Encryption Examples
- Encrypt File to .p7m
- Sign a File to Create a .p7s 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
- To Match .NET Framework AES Encryption Results
- 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)
- 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 Encrypt a string returning an encrypted string.
- Blowfish Encrypt a string returning an encrypted string.
- AES Encrypt a Byte Array
- BZIP2 compress and AES Encrypt a byte array.
- AES Encrypt / URL Encode String
- Digest-MD5 hash a string and encode the result as a URL-encoded string
- HAVAL Hash to Hexidecimalized String
- SHA-1 Hash Byte Array
- TwoFish ECB Encryption Matching Counterpane Test Vectors
- 256-bit AES Decrypt Hexidecimalized Encrypted String
- Read File, Encrypt in Memory, Save File
- C++ Blowfish CBC Encryption Matching Published Test Vectors
- C++ Blowfish ECB Encryption Matching Published Test Vectors
- OMA DRM Create DCF File
- Match Java JCE AES Encryption Results (ECB mode)
- Match Java JCE AES CBC Encryption Results
浙公网安备 33010602011771号