# Windows Cryptography - C# Samples

Comprehensive C# cryptography examples for Windows platform including hash computation, symmetric encryption, asymmetric encryption, and digital signatures

> Canonical page: https://elysiatools.com/en/samples/windows-cryptography-csharp

- **Category:** C#

- **Keywords:** csharp, c#, cryptography, encryption, security, hashing, windows

## Overview

Comprehensive C# cryptography examples for Windows platform including hash computation, symmetric encryption, asymmetric encryption, and digital signatures

## Examples

- **Hash Computation and Verification**: Computing and verifying cryptographic hashes using MD5, SHA-1, SHA-256, SHA-512 for data integrity and authentication
- **Symmetric Encryption and Decryption**: Implementing symmetric encryption using AES, DES, and TripleDES for data confidentiality and secure communication
- **Digital Signatures and Asymmetric Cryptography**: Implementing digital signatures using RSA for data authentication, non-repudiation, and secure key exchange

## When to use

- Use this sample set when you want reference inputs for Windows Cryptography - C# Samples.
- Use it to preview output formats and compare related sample variants.

## How it works

- Open a sample entry to inspect the prepared example payload or asset.
- Compare it with related tools to understand how the workflow connects.

## Use cases

- Hash Computation and Verification
- Symmetric Encryption and Decryption
- Digital Signatures and Asymmetric Cryptography

## Frequently asked questions

### What is included in Windows Cryptography - C# Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for Windows Cryptography - C# Samples.

## Related tools

- [Windows PE / Linux ELF / Mach-O Binary Header, Section, Import & Export Inspector](https://elysiatools.com/en/tools/windows-pe-linux-elf-mach-o-binary-header-section-import-export-inspector): Upload a PE-COFF (.exe/.dll), ELF or Mach-O binary and parse its headers end to end: DOS/PE signature, COFF machine, optional header (entry point, image base, subsystem, ASLR/NX/CFG), section table with RVA↔offset mapping, import/export directories, ELF program headers and PIE detection, dynamic symbols and DT_NEEDED, Mach-O load commands and dylibs — with cross-architecture annotations and a hex preview.
- [Digital Signature Generator](https://elysiatools.com/en/tools/digital-signature-generator): Sign a message with a private key or verify a signature with a public key — supports RSA-PSS (SHA-256), ECDSA (P-256), and Ed25519. Pure client-side crypto (Node crypto.createSign/createVerify), no network. Paste a PEM key to sign or to verify a base64 signature. This tool signs/verifies; it does not generate key pairs.
- [Bcrypt Generator](https://elysiatools.com/en/tools/bcrypt-generator): Generate bcrypt hash from password
- [PBKDF2 Generator](https://elysiatools.com/en/tools/pbkdf2-generator): Generate PBKDF2 key derivation hash
- [RSA Encrypt / Decrypt](https://elysiatools.com/en/tools/rsa-encrypt-decrypt): Encrypt text with an RSA public key or decrypt ciphertext with the matching private key, using OAEP padding (SHA-1 or SHA-256). Handles long messages by chunking. Keys and data stay local. PKCS#1 v1.5 is intentionally not offered (Node disables it for decryption due to Bleichenbacher attacks).
- [Scrypt Generator](https://elysiatools.com/en/tools/scrypt-generator): Generate Scrypt hash from password
- [AES Encryption Tool](https://elysiatools.com/en/tools/aes-encryption-tool): Encrypt or decrypt text and files with AES-256-GCM and export IV-based bundles
- [Hash Algorithm Comparator](https://elysiatools.com/en/tools/hash-algorithm-comparator): Hash the same input with MD5, SHA-1, SHA-256, SHA-512, BLAKE2b, and BLAKE3 at the same time and compare them side by side: output length, hex/Base64 digest, security status (broken / modern), and a relative speed benchmark. Great for teaching, choosing a hashing algorithm, or sanity-checking checksums.

## Related content

- [Android Cryptography Java Samples](https://elysiatools.com/en/samples/android-cryptography-java): Android Java cryptography examples including hash calculation, AES encryption/decryption, and Base64 encoding
- [Android Cryptography Kotlin Samples](https://elysiatools.com/en/samples/android-cryptography-kotlin): Android Kotlin cryptography examples including hash calculation, AES encryption/decryption, and Base64 encoding
- [Cryptography and Encryption Samples](https://elysiatools.com/en/samples/cryptography): Comprehensive cryptography examples including symmetric encryption, asymmetric encryption, hash functions, digital signatures, and key exchange protocols
- [macOS Cryptography Objective-C Samples](https://elysiatools.com/en/samples/macos-cryptography-objectivec): macOS Objective-C cryptography examples including hash calculation, symmetric encryption, and Base64 encoding
- [macOS Cryptography Swift Samples](https://elysiatools.com/en/samples/macos-cryptography-swift): macOS Swift cryptography examples including hash functions, encryption/decryption, and digital signatures
- [Web Cryptography Go Samples](https://elysiatools.com/en/samples/web-cryptography-go): Web Go cryptography and security examples including hash calculation, symmetric encryption, and Base64 encoding/decoding
