parallel_bcrypt

package
v0.0.0-...-df1f2e6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

*Run bcrypt password hash in parallel threads and combine the results. Four threads is a good choice. Since most modern computers and

mobile devices have 4 core processors the hash completes in about
the same amount of time as a single bcrypt, however it makes
cracking attempts 4X more costly.

Index

Constants

View Source
const BcryptSaltLen = 16

Salt must be exactly this number of bytes

View Source
const OutputSize = 32

The number of bytes returned by Hash()

Variables

This section is empty.

Functions

func Hash

func Hash(nThreads int, plaintextPassword []byte, salt []byte, cost int) ([]byte, error)

*Hash given password with N threads (1-32). There is no length limit on the password because it is first hashed with sha256 before it goes into bcrypt. The output hash is always 32 bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL