Skip to content

Application to generate secure passwords with the Bcrypt/Blowfish library in Golang

Notifications You must be signed in to change notification settings

gchacaltana/go-bcrypt-blowfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Golang Bcrypt-Blowfish

Generando password seguros Bcrypt/Blowfish en GO.

Instalación

Instalamos Go y seteamos la variable de entorno.

$ sudo yum install golang
$ mkdir $HOME/go
$ export GOPATH=$HOME/go
$ export PATH=$PATH:$GOPATH/bin

Instalamos mercurial, para poder descargar el package bcrypt del repositorio de Google.

$ sudo yum install mercurial

Si se presenta un problema para instalar Mercurial, puedes hacer lo siguiente:

$ sudo yum install python-setuptools python-devel gcc -y
$ sudo easy_install Mercurial

Descargamos el package del repositorio de Google.

$ go get code.google.com/p/go.crypto/bcrypt

Ejecución

Compilamos.

$ go build clicrypt.go

Probamos.

$ ./bcrypt_generate -password="@gchacaltanab"

Me retorna:

$ $2a$13$oWvgAl9CYjiQE8rjzX6h4.Lf/NS2pIAb9KnfG2s9vszFy6dXmP6Ry

Comparar password

$./bcrypt_generate -password="@gchacaltanab" -hash='$2a$13$oWvgAl9CYjiQE8rjzX6h4.Lf/NS2pIAb9KnfG2s9vszFy6dXmP6Ry

About

Application to generate secure passwords with the Bcrypt/Blowfish library in Golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages