Try scrypt at github.com/elithrar/simple-scrypt . It's not a 'standard lib' item, but I've found the authors code easy to implemented as 'package main' code vs 'package' code
On Monday, April 22, 2019 at 6:14:48 AM UTC-4, whiteh...@googlemail.com wrote: > > I'm porting some code over to Go, and currently looking at some password > hashing. I'm wondering if there is a 'standard library' alternative to > using bcrypt? > > I am concerned about the Go binary size, since I'm already at 15MB! So > I'm trying to limit external dependencies as much as possible. > > The data being stored is not critical or sensitive, just some email > address mainly. > > From my research it sounds like 'golang.org/pkg/crypto/sha512/' might be > what I need, but I dont see any clear alternative for the following > functions below: > > I'm still new to Go, so I'm wondering what would be the recommended > solution using the standard library please? > > Peter > > > bcrypt.GenerateFromPassword > > bcrypt.CompareHashAndPassword > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.