Created
January 25, 2022 22:19
-
-
Save jonasermert/603548ab1608076b1245bbd03c732e33 to your computer and use it in GitHub Desktop.
Revisions
-
jonasermert created this gist
Jan 25, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ /* author: Jonas Ermert year: 2022 */ package main import ( "fmt" "golang.org/x/crypto/bcrypt" ) // main implements a function to generate passwords func main() { password := "password" hashedPassword, _ := bcrypt.GenerateFromPassword([]byte(password), 12) fmt.Println(string(hashedPassword)) }