Skip to content

kronaemmanuel/sha256-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SHA-256 in Go

This is not a serious/efficient implementation of SHA-256 in Go. You can use the official package for that. This is just for learning purposes, which you can probably tell because I'm using strings to hold data instead of storing it in binary/hex form.

This project is part of small fun experiments I do to challenge and improve my coding skills. I write about these experiments on my blog. You can visit the blog post about this project here

How to run

  • Clone the repo
  • Make sure you have Go installed
  • Go to the project directory
  • Run go run .

You'll have to change the string inside the code itself, to be able to get a different hash at the end. the code output shows a lot of different things, the hash will be given at the end. For example, when I was testing, and put in the password to my bank account, it gave me this hash at the end:

Output of step 8: 
ec894281e55b2adf4b55f27cee33812bd4ac98ae65b21f4bf3e272b5567f5222

Resources:

Main guide I used was:

Other very useful resources were:

About

A simple implementation of SHA-256 Algorith in Go Language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages