CipherTools
ToolsBlogsSnippets
ToolsBlogsSnippets

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.

Open snippet

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.

Open snippet

Argon2

Python Argon2 Hash Code Example (Online Runner)

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

Open snippet

bcrypt

Python bcrypt Hash Code Example (Online Runner)

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

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

ChaCha20-Poly1305

Python ChaCha20-Poly1305 Code Example (Online Runner)

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

Open snippet

CityHash

Python CityHash64 Code Example (Online Runner)

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

Open snippet

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.

Open snippet

DES

Python DES Encryption Code Example (Online Runner)

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

Open snippet

FarmHash

Python FarmHash Fingerprint64 Code Example (Online Runner)

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

Open snippet

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.

Open snippet

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.

Open snippet

MD5

Python MD5 Hash Code Example (Online Runner)

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

Open snippet

MurmurHash2

Python MurmurHash2 Code Example (Online Runner)

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

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

SHAKE

Python SHAKE Hash Code Example (Online Runner)

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

Open snippet

xxHash

Python xxHash Code Example (Online Runner)

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

Open snippet
© 2026 CipherTools. All computations run locally in your browser.