CipherTools
ToolsBlogsSnippets
ToolsBlogsSnippets

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.

Open snippet

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.

Open snippet

Argon2

Go Argon2 Hash Code Example (Online Runner)

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

Open snippet

bcrypt

Go bcrypt Hash Code Example (Online Runner)

Go bcrypt examples with cost control and password verification to match the bcrypt tool.

Open snippet

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.

Open snippet

BLAKE2

Go BLAKE2 Hash Code Example (Online Runner)

Go BLAKE2 hashing examples for BLAKE2b/BLAKE2s with keyed mode and digest length controls.

Open snippet

BLAKE3

Go BLAKE3 Hash Code Example (Online Runner)

Go BLAKE3 hashing examples with digest length control, keyed hashing, and context strings.

Open snippet

ChaCha20-Poly1305

Go ChaCha20-Poly1305 Code Example (Online Runner)

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

Open snippet

CityHash

Go CityHash64 Code Example (Online Runner)

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

Open snippet

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.

Open snippet

DES

Go DES Encryption Code Example (Online Runner)

Go DES examples with mode, padding, key size, and encoding controls to mirror the DES tool.

Open snippet

FarmHash

Go FarmHash Code Example (Online Runner)

Go FarmHash64 examples with decimal output and file hashing to match the FarmHash tools.

Open snippet

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.

Open snippet

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.

Open snippet

MD5

Go MD5 Hash Code Example (Online Runner)

Go MD5 hashing code example with runnable snippets to calculate MD5 for text and files.

Open snippet

MurmurHash2

Go MurmurHash2 Code Example (Online Runner)

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

Open snippet

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.

Open snippet

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.

Open snippet

scrypt

Go scrypt Hash Code Example (Online Runner)

Go scrypt examples with parameters, salt encoding, and derived key length matching the scrypt tool.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

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.

Open snippet

SHAKE

Go SHAKE Hash Code Example (Online Runner)

Go SHAKE128/SHAKE256 examples with variable digest length and runnable snippets.

Open snippet

xxHash

Go xxHash Code Example (Online Runner)

Go 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.