crypt

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyMD5Crypt added in v0.1.6

func KeyMD5Crypt(password, salt []byte) []byte

KeyMD5Crypt calculates the md5crypt key given a password and salt.

func KeyMD5CryptSun added in v0.1.6

func KeyMD5CryptSun(password, salt []byte, rounds uint32) []byte

KeyMD5CryptSun calculates the md5crypt (Sun Version) key given a password, salt, and number rounds.

func KeySHA1Crypt added in v0.1.6

func KeySHA1Crypt(password, salt []byte, rounds uint32) []byte

KeySHA1Crypt calculates the sha1crypt key given a password, salt, and number of rounds.

func KeySHACrypt added in v0.1.6

func KeySHACrypt(hashFunc func() hash.Hash, password, salt []byte, rounds int) []byte

KeySHACrypt calculates the shacrypt SHA256/SHA512 key given an appropriate hash.Hash, password, salt, and number of rounds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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