# Cryptography and Encryption Samples

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

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

- **Category:** Security

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

## 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

## Related tools

- [AES Encryption Tool](https://test.elysiatools.com/en/tools/aes-encryption-tool): Encrypt or decrypt text and files with AES-256-GCM and export IV-based bundles
- [Web Push RFC 8030 Request + VAPID + RFC 8291 Payload Encryption Encoder](https://test.elysiatools.com/en/tools/web-push-rfc8030-vapid-rfc8291-payload-encrypted-content-encoder): Encode a complete Web Push send: RFC 8291 aes128gcm payload encryption, RFC 8292 VAPID ES256 JWT, RFC 8030 headers, APNs/FCM cross-walk and decrypt round-trip verification.
- [Digital Signature Generator](https://test.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://test.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://test.elysiatools.com/en/tools/bcrypt-generator): Generate bcrypt hash from password
- [JWK Generator & Parser](https://test.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://test.elysiatools.com/en/tools/key-pair-generator): Generate public/private key pairs for various cryptographic algorithms
- [PBKDF2 Generator](https://test.elysiatools.com/en/tools/pbkdf2-generator): Generate PBKDF2 key derivation hash

## Related content

- [Android Cryptography Java Samples](https://test.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://test.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://test.elysiatools.com/en/samples/macos-cryptography-swift): macOS Swift cryptography examples including hash functions, encryption/decryption, and digital signatures
- [Web Cryptography Go Samples](https://test.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://test.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://test.elysiatools.com/en/samples/web-cryptography-rust): Web Rust cryptography examples including hash calculation, symmetric encryption, and Base64 encoding
