Python

Python cryptography snippets

Copy-ready implementations, test vectors, and runnable scripts for Python projects.

AES

Python AES Encryption Code Example (Online Runner)

Python AES examples with mode, padding, key size, and encoding controls to mirror the AES tool.

AES-GCM

Python AES-GCM Code Example (Online Runner)

Python AES-GCM examples with tag length, AAD, and encoding controls matching the AES-GCM tool.

Argon2

Python Argon2 Hash Code Example (Online Runner)

Python Argon2id/Argon2i/Argon2d hashing examples with iterations, memory, parallelism, salt encoding, and secret inputs.

bcrypt

Python bcrypt Hash Code Example (Online Runner)

Python bcrypt hashing examples with configurable cost factor and verification, matching the online tool.

BKDR

Python BKDR Hash Code Example (Online Runner)

Python BKDR hash examples with seed parsing, number/hex output, and file hashing to match the BKDR tool.

BLAKE2

Python BLAKE2 Hash Code Example (Online Runner)

Python BLAKE2 hashing examples for BLAKE2b/BLAKE2s with keyed mode and digest length controls, matching the online tool.

BLAKE3

Python BLAKE3 Hash Code Example (Online Runner)

Python BLAKE3 hashing examples with digest length control, keyed hashing, and context strings matching the online tool.

ChaCha20-Poly1305

Python ChaCha20-Poly1305 Code Example (Online Runner)

Python ChaCha20-Poly1305 examples with key/nonce/AAD encoding and ciphertext+tag handling.

CityHash

Python CityHash64 Code Example (Online Runner)

Python CityHash64 examples with decimal output and file hashing to match the CityHash tools.

CRC

Python CRC Code Example (Online Runner)

Python CRC-8/16/32/64 examples with preset variants, hex/decimal output, and file checksums matching the CRC tools.

DES

Python DES Encryption Code Example (Online Runner)

Python DES examples with mode, padding, and encoding controls to mirror the DES tool.

FarmHash

Python FarmHash Fingerprint64 Code Example (Online Runner)

Python FarmHash fingerprint64 examples with unsigned decimal output and file hashing.

File Encryption

Python File Encryption Code Example (Online Runner)

Python file encryption examples for AES/DES with mode, padding, key size, and encoding controls matching the file tool.

HMAC

Python HMAC Code Example (Online Runner)

Python HMAC examples with selectable hash algorithms, input encodings, and hex/Base64 output to match the online tool.

MD5

Python MD5 Hash Code Example (Online Runner)

Python MD5 hashing code example with runnable snippets to calculate MD5 and verify results online.

MurmurHash2

Python MurmurHash2 Code Example (Online Runner)

Python MurmurHash2 examples with variant selection, seeds, and number/hex output matching the MurmurHash2 tools.

MurmurHash3

Python MurmurHash3 Code Example (Online Runner)

Python MurmurHash3 examples with 32-bit/128-bit variants, seeds, and number/hex output to match the tools.

RSA

Python RSA-OAEP Code Example (Online Runner)

Python RSA-OAEP examples with hash selection, PEM keys, and hybrid file encryption matching the RSA tools.

scrypt

Python scrypt Hash Code Example (Online Runner)

Python scrypt key-derivation examples with cost, block size, parallelism, salt encoding, and output length matching the online tool.

SHA-256

Python SHA-256 Hash Code Example (Online Runner)

Python SHA-256 hashing code example with runnable snippets to calculate SHA-256 and verify results online.

SHA-3

Python SHA-3 Hash Code Example (Online Runner)

Python SHA-3 hashing code examples for SHA3-224/256/384/512 with runnable snippets and file hashing.

SHA-512

Python SHA-512 Hash Code Example (Online Runner)

Python SHA-512 hashing code example with runnable snippets to calculate SHA-512 and verify results online.

SHA3-256

Python SHA3-256 Hash Code Example (Online Runner)

Python SHA3-256 hashing code example with runnable snippets to calculate SHA3-256 and verify results online.

SHAKE

Python SHAKE Hash Code Example (Online Runner)

Python SHAKE128/SHAKE256 extendable-output hashing examples with configurable digest length and runnable snippets.

xxHash

Python xxHash Code Example (Online Runner)

Python xxHash examples for XXH32, XXH64, XXH3-64, and XXH3-128 with seeds and hex/decimal output.