Skip to content

blhagadorn/go-crypto-tour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tour of Simple Crypto Operations in Golang

Articles:
A Tour of Go Cryptography Part 1: Hashing

Using the examples

1. Hashing

SHA256 hashing of a string

go run 1-hashing/hash.go

2. Symmetric Encryption

Encrypting and decrypting a string with AES with input from the command line

AES encryption of a string (input of plaintext to encrypt)

$ go run 2-symmetric-encryption/encrypt.go helloworld
> Encrypted: 0rP4UAf/+zPKag==

AES decryption of a string (input of ciphertext to decrypt)

$ go run 2-symmetric-encryption/decrypt.go 0rP4UAf/+zPKag==
> Decrypted: helloworld

About

A tour of simple crypto operations in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages