mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
chore: add LICENSE GPLv2-or-later (#897)
* chore: add LICENSE * chore: add LICENSE to README
This commit is contained in:
parent
fbdeedc74c
commit
604c7896bd
247 changed files with 1303 additions and 33 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue