Categorygithub.com/codehack/scrypto
modulepackage
0.0.0-20151016065608-927801707fa1
Repository: https://github.com/codehack/scrypto.git
Documentation: pkg.go.dev

# README

Scrypto GoDoc Project progress

Scrypt functions for Go

Scrypto provides functions to create and compare passwords using scrypt.

Quick Start

Install using "go get":

go get github.com/codehack/scrypto

Then import from your source:

import "github.com/codehack/scrypto"

Documentation

The full code documentation is located at GoDoc:

http://godoc.org/github.com/codehack/scrypto

Credits

Scrypto is Copyright (c) 2014-present Codehack. Published under MIT License

# Functions

Compare compares a plaintext password to a hashed password.
Hash hashes a password with optional scrypt values N, r, and p.
NewSalt returns a randomly generated salt of 'size' length.

# Constants

DefaultN is the default value for Scrypt N.
DefaultP is the default value for Scrypt p.
DefaultR is the default value for Scrypt r.
KeyLen is the length for the generated key.
SaltLen is the default length of the random salt.
Version is the version of this package.