chore: add LICENSE GPLv2-or-later (#897)

* chore: add LICENSE

* chore: add LICENSE to README
This commit is contained in:
ze0s 2023-05-01 16:21:59 +02:00 committed by GitHub
parent fbdeedc74c
commit 604c7896bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
247 changed files with 1303 additions and 33 deletions

View file

@ -1,3 +1,6 @@
// Copyright (c) 2021 - 2023, Ludvig Lundgren and the autobrr contributors.
// SPDX-License-Identifier: GPL-2.0-or-later
package argon2id
import (
@ -74,8 +77,7 @@ type Params struct {
// the Argon2 reference C implementation and contains the base64-encoded Argon2id d
// derived key prefixed by the salt and parameters. It looks like this:
//
// $argon2id$v=19$m=65536,t=3,p=2$c29tZXNhbHQ$RdescudvJCsgt3ub+b+dWRWJTmaaJObG
//
// $argon2id$v=19$m=65536,t=3,p=2$c29tZXNhbHQ$RdescudvJCsgt3ub+b+dWRWJTmaaJObG
func CreateHash(password string, params *Params) (hash string, err error) {
salt, err := generateRandomBytes(params.SaltLength)
if err != nil {