Run Python cryptography directly in your browser using WebAssembly.
hashlib, hmac, base64, binascii and other Pyodide-supported stdlib.
The Python Cryptography Compiler is a free browser tool that lets you write and run Python cryptography code without installing anything. It runs fully inside your browser using Pyodide, which is a WebAssembly version of CPython. Your code stays on your device and is never sent to a server. You can use common modules such as hashlib, hmac, base64, and binascii. This makes the tool useful for learning, testing ideas, and doing quick cryptographic tasks.
Create secure password hashes using SHA-256 or PBKDF2 before storing credentials.
Generate MD5 or SHA checksums to confirm that files were not modified or corrupted.
Produce message authentication codes to verify both integrity and authenticity of data.
Convert binary data into Base64 text so it can be safely transmitted through HTTP or email.
Derive strong encryption keys from passwords using PBKDF2 with salt and iteration control.
Experiment with cryptographic functions in real time. Helpful for students and security learners.
import hashlib
message = "Hello, World!"
hash_value = hashlib.sha256(message.encode()).hexdigest()
print(f"SHA-256: {hash_value}")import hmac, hashlib
key = b"secret_key"
msg = "Authenticate this message"
mac = hmac.new(key, msg.encode(), hashlib.sha256).hexdigest()
print(f"HMAC: {mac}")import base64
data = "Sensitive data here"
encoded = base64.b64encode(data.encode()).decode()
decoded = base64.b64decode(encoded).decode()
print(f"Encoded: {encoded}")
print(f"Decoded: {decoded}")Type or paste Python code into the editor and start from the provided examples if needed.
Click Run to execute the code using Pyodide directly inside your browser.
Check the output and download it as TXT, PDF, or PNG if you want to share the result.