Registry / crypto / elithrar-simple-scrypt

elithrar-simple-scrypt

JSON →
library1.4.1gogounverified

Package scrypt provides a convenience wrapper around Go's existing scrypt package that makes it easier to securely derive strong keys from weak inputs.

go get github.com/elithrar/simple-scrypt
INSTALL
IMPORT
SIG · ELITHRAR-SIMPLE-SC
E
elithrar-simple-scrypt
cryptogov1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

scrypt
github.com/elithrar/simple-scrypt

Hashes and verifies a password using scrypt.

package main import ( "log" "github.com/elithrar/simple-scrypt" ) func main() { hash, err := scrypt.GenerateFromPassword([]byte("password"), scrypt.DefaultParams) if err != nil { log.Fatal(err) } err = scrypt.CompareHashAndPassword(hash, []byte("password")) if err != nil { log.Fatal("password mismatch") } log.Println("OK") }
Debug
Known issues
gotchaDefault parameters may be too weak for production; adjust based on your security requirements.
fix
Use scrypt.DefaultParams as a starting point and increase N, R, P for higher security.
affects: all
Upgrade
Version history
1.4.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
elithrar-simple-scrypt — go get elithrar-simple-scrypt · libregistry