Fix setting empty OTP secret; minor refactors

This commit is contained in:
Mitchell Simon 2019-09-07 01:44:43 -04:00
parent 2096d6ada8
commit e136b40b70
6 changed files with 33 additions and 30 deletions

View file

@ -12,5 +12,5 @@ const (
)
func GeneratePBKDF2Key(password, salt []byte) []byte {
return pbkdf2.Key([]byte(password), []byte(salt), PBKDF2Rounds, KeyLength, sha256.New)
return pbkdf2.Key(password, salt, PBKDF2Rounds, KeyLength, sha256.New)
}