sha2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package sha2crypt implements sha256-crypt and sha512-crypt.

Index

Constants

This section is empty.

Variables

View Source
var (

	// An implementation of Scheme performing sha256-crypt.
	Crypter256 scheme.Scheme
	// An implementation of Scheme performing sha512-crypt.
	Crypter512 scheme.Scheme
)

Functions

func NewCrypter256

func NewCrypter256(rounds int) scheme.Scheme

Returns a Scheme implementing sha256-crypt using the number of rounds specified.

func NewCrypter512

func NewCrypter512(rounds int) scheme.Scheme

Returns a Scheme implementing sha512-crypt using the number of rounds specified.

Types

This section is empty.

Directories

Path Synopsis
Raw package provides a raw implementation of the sha256-crypt and sha512-crypt primitives.
Raw package provides a raw implementation of the sha256-crypt and sha512-crypt primitives.

Jump to

Keyboard shortcuts

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