# Cryptography and Encryption Samples

Comprehensive cryptography examples including symmetric encryption, asymmetric encryption, hash functions, digital signatures, and key exchange protocols

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

- **Category:** Security

- **Keywords:** cryptography, encryption, security, aes, rsa, ecc, hash, digital-signature, key-exchange, crypto

## Overview

Comprehensive cryptography examples including symmetric encryption, asymmetric encryption, hash functions, digital signatures, and key exchange protocols

## Examples

- **Symmetric Encryption with AES**: Advanced Encryption Standard (AES) implementation for secure data encryption and decryption with different key sizes and modes
- **ChaCha20 Stream Cipher**: ChaCha20 poly1305 authenticated encryption implementation for high-performance secure communications
- **Asymmetric Encryption with RSA**: RSA public-key cryptography implementation for secure key exchange, digital signatures, and hybrid encryption
- **Elliptic Curve Cryptography (ECC)**: ECC implementation using ECDSA for digital signatures and ECDH for key exchange with secp256k1 and Ed25519 curves
- **Hash Functions and Digital Signatures**: Comprehensive hash function implementations and digital signature schemes including SHA-256, HMAC, Merkle trees, and certificate-based signatures
- **Key Exchange Protocols**: Implementation of secure key exchange protocols including Diffie-Hellman, ECDH, and post-quantum key exchange methods

## When to use

- Use this sample set when you want reference inputs for Cryptography and Encryption 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

- Symmetric Encryption with AES
- ChaCha20 Stream Cipher
- Asymmetric Encryption with RSA
- Elliptic Curve Cryptography (ECC)
- Hash Functions and Digital Signatures
- Key Exchange Protocols

## Frequently asked questions

### What is included in Cryptography and Encryption Samples?

This page includes curated sample entries, related tools, and neighboring sample collections for Cryptography and Encryption Samples.

## Related tools

- [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
- [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.
- [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).
- [Bcrypt Generator](https://elysiatools.com/en/tools/bcrypt-generator): Generate bcrypt hash from password
- [JWK Generator & Parser](https://elysiatools.com/en/tools/jwk-generator): Generate JSON Web Keys (JWK) for RSA, EC (P-256/P-384/P-521/secp256k1), and OKP (Ed25519/Ed448/X25519/X448), or parse an existing JWK to inspect its parameters, thumbprint, and metadata
- [Key Pair Generator](https://elysiatools.com/en/tools/key-pair-generator): Generate public/private key pairs for various cryptographic algorithms
- [PBKDF2 Generator](https://elysiatools.com/en/tools/pbkdf2-generator): Generate PBKDF2 key derivation hash
- [RSA Key Pair Generator](https://elysiatools.com/en/tools/rsa-key-generator): Generate an RSA key pair (2048/3072/4096-bit) as PEM-encoded public and private keys. Optionally encrypt the private key with a passphrase. PKCS#8 (recommended) or PKCS#1 private key format. Everything runs locally.

## 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
- [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
- [Web Cryptography Python Samples](https://elysiatools.com/en/samples/web-cryptography-python): Web Python cryptography and security examples including hash computation, symmetric encryption, and Base64 encoding
- [Web Cryptography Rust Samples](https://elysiatools.com/en/samples/web-cryptography-rust): Web Rust cryptography examples including hash calculation, symmetric encryption, and Base64 encoding
