Go
Go cryptography snippets
Copy-ready implementations, test vectors, and runnable scripts for Go projects.
AES
Go AES Encryption Code Example (Online Runner)
Go AES examples with mode, padding, key size, and encoding controls to mirror the AES tool.
AES-GCM
Go AES-GCM Code Example (Online Runner)
Go AES-GCM examples with tag length, AAD, and encoding controls matching the AES-GCM tool.
Argon2
Go Argon2 Hash Code Example (Online Runner)
Go Argon2id/Argon2i hashing examples with iterations, memory, parallelism, salt encoding, and optional secret inputs.
bcrypt
Go bcrypt Hash Code Example (Online Runner)
Go bcrypt examples with cost control and password verification to match the bcrypt tool.
BKDR
Go BKDR Hash Code Example (Online Runner)
Go BKDR hash examples with seed parsing, number/hex output, and file hashing to match the BKDR tool.
BLAKE2
Go BLAKE2 Hash Code Example (Online Runner)
Go BLAKE2 hashing examples for BLAKE2b/BLAKE2s with keyed mode and digest length controls.
BLAKE3
Go BLAKE3 Hash Code Example (Online Runner)
Go BLAKE3 hashing examples with digest length control, keyed hashing, and context strings.
ChaCha20-Poly1305
Go ChaCha20-Poly1305 Code Example (Online Runner)
Go ChaCha20-Poly1305 examples with key/nonce/AAD encoding and ciphertext+tag handling.
CityHash
Go CityHash64 Code Example (Online Runner)
Go CityHash64 examples with decimal output and file hashing to match the CityHash tools.
CRC
Go CRC Code Example (Online Runner)
Go CRC-8/16/32/64 examples with preset variants, hex/decimal output, and file checksums matching the CRC tools.
DES
Go DES Encryption Code Example (Online Runner)
Go DES examples with mode, padding, key size, and encoding controls to mirror the DES tool.
FarmHash
Go FarmHash Code Example (Online Runner)
Go FarmHash64 examples with decimal output and file hashing to match the FarmHash tools.
File Encryption
Go File Encryption Code Example (Online Runner)
Go file encryption examples for AES/DES with mode, padding, key size, and encoding controls matching the file tool.
HMAC
Go HMAC Code Example (Online Runner)
Go HMAC examples with SHA-1/SHA-2/SHA-3/RIPEMD-160/MD5 and encoding controls to match the HMAC tool.
MD5
Go MD5 Hash Code Example (Online Runner)
Go MD5 hashing code example with runnable snippets to calculate MD5 for text and files.
MurmurHash2
Go MurmurHash2 Code Example (Online Runner)
Go MurmurHash2 examples with variant selection, seeds, and number/hex output matching the MurmurHash2 tools.
MurmurHash3
Go MurmurHash3 Code Example (Online Runner)
Go MurmurHash3 examples with 32-bit/128-bit variants, seeds, and number/hex output to match the tools.
RSA
Go RSA-OAEP Code Example (Online Runner)
Go RSA-OAEP examples with hash selection, PEM keys, and hybrid file encryption matching the RSA tools.
scrypt
Go scrypt Hash Code Example (Online Runner)
Go scrypt examples with parameters, salt encoding, and derived key length matching the scrypt tool.
SHA-256
Go SHA-256 Hash Code Example (Online Runner)
Go SHA-256 hashing code example with runnable snippets to calculate SHA-256 for text and files.
SHA-3
Go SHA-3 Hash Code Example (Online Runner)
Go SHA-3 hashing examples for SHA3-224/256/384/512 with runnable snippets and file hashing.
SHA-512
Go SHA-512 Hash Code Example (Online Runner)
Go SHA-512 hashing code example with runnable snippets to calculate SHA-512 for text and files.
SHA3-256
Go SHA3-256 Hash Code Example (Online Runner)
Go SHA3-256 hashing code example with runnable snippets to calculate SHA3-256 for text and files.
SHAKE
Go SHAKE Hash Code Example (Online Runner)
Go SHAKE128/SHAKE256 examples with variable digest length and runnable snippets.
xxHash
Go xxHash Code Example (Online Runner)
Go xxHash examples for XXH32, XXH64, XXH3-64, and XXH3-128 with seeds and hex/decimal output.