bcryptsha256

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package bcryptsha256 implements bcrypt with a SHA256 prehash in a format that is compatible with Python passlib's equivalent bcrypt-sha256 scheme.

This is preferred over bcrypt because the prehash essentially renders bcrypt's password length limitation irrelevant; although of course it is less compatible.

Index

Constants

View Source
const RecommendedCost = bcrypt.RecommendedCost

The recommended cost for bcrypt-sha256. This may change with subsequent releases.

Variables

An implementation of Scheme implementing Python passlib's `$bcrypt-sha256$` bcrypt variant. This is bcrypt with a SHA256 prehash, which removes bcrypt's password length limitation.

Functions

func New

func New(cost int) abstract.Scheme

Instantiates a new Scheme implementing bcrypt with the given cost.

The recommended cost is RecommendedCost.

Types

This section is empty.

Jump to

Keyboard shortcuts

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