Categorygithub.com/tobischo/argon2
modulepackage
0.1.0
Repository: https://github.com/tobischo/argon2.git
Documentation: pkg.go.dev

# README

argon2

This package is a fork off the https://pkg.go.dev/golang.org/x/crypto/argon2 package. It is generally recommended to use the officially supported package rather than this one. The only reason this fork exists is because keepass selected argon2 in 2d mode, which was chosen not to be exposed in the implementation. In order to be able to implement a compatible version for keepass. Read up here about more details as to why it was not exposed.

# Functions

DKey derives a key from the password, salt, and cost parameters using Argon2d returning a byte slice of length keyLen that can be used as cryptographic key.
IDKey derives a key from the password, salt, and cost parameters using Argon2id returning a byte slice of length keyLen that can be used as cryptographic key.
Key derives a key from the password, salt, and cost parameters using Argon2i returning a byte slice of length keyLen that can be used as cryptographic key.

# Constants

The Argon2 version implemented by this package.