diff --git a/gost_yes_crypt.go b/gost_yes_crypt.go index 28350ff..14f2a46 100644 --- a/gost_yes_crypt.go +++ b/gost_yes_crypt.go @@ -113,7 +113,7 @@ func SHashGostYesCryptPassword(password string) (hash string, err error) { // Hash an password string with salt using default parameters with Gost Yes Crypt. func SHashGostYesCryptPasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewGostYesCryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/md5_crypt.go b/md5_crypt.go index 62ce17a..44c3a68 100644 --- a/md5_crypt.go +++ b/md5_crypt.go @@ -142,7 +142,7 @@ func SHashMD5Password(password string) (hash string, err error) { // Hash an password string with salt using default parameters with MD5. func SHashMD5PasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewMD5CryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/nt_hash.go b/nt_hash.go index dc0f1ca..ec37503 100644 --- a/nt_hash.go +++ b/nt_hash.go @@ -116,7 +116,7 @@ func SHashNTPassword(password string) (hash string, err error) { // Hash an password string with salt using default parameters with NT. func SHashNTPasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewNTPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/pbkdf1_sha1_crypt.go b/pbkdf1_sha1_crypt.go index 5cc5737..b714a21 100644 --- a/pbkdf1_sha1_crypt.go +++ b/pbkdf1_sha1_crypt.go @@ -102,7 +102,7 @@ func SHashSHA1Password(password string) (hash string, err error) { // Hash an password string with salt using default parameters with SHA1. func SHashSHA1PasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewSHA1Passwd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/s_crypt.go b/s_crypt.go index 1448750..8a2f609 100644 --- a/s_crypt.go +++ b/s_crypt.go @@ -93,7 +93,7 @@ func SHashSCryptPassword(password string) (hash string, err error) { // Hash an password string with salt using default parameters with SCrypt. func SHashSCryptPasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewSCryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/sha256_crypt.go b/sha256_crypt.go index 6709430..60a08bb 100644 --- a/sha256_crypt.go +++ b/sha256_crypt.go @@ -173,7 +173,7 @@ func SHashSHA256Password(password string) (hash string, err error) { // Hash an password string with salt using default parameters with SHA256. func SHashSHA256PasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewSHA256CryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/sha512_crypt.go b/sha512_crypt.go index 14fc767..8bb85ec 100644 --- a/sha512_crypt.go +++ b/sha512_crypt.go @@ -173,7 +173,7 @@ func SHashSHA512Password(password string) (hash string, err error) { // Hash an password string with salt using default parameters with SHA512. func SHashSHA512PasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewSHA512CryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/sun_md5.go b/sun_md5.go index d3fd608..1d90994 100644 --- a/sun_md5.go +++ b/sun_md5.go @@ -210,7 +210,7 @@ func SHashSunMD5Password(password string) (hash string, err error) { // Hash an password string with salt using default parameters with Sun MD5. func SHashSunMD5PasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewSunMD5Passwd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return } diff --git a/yes_crypt.go b/yes_crypt.go index 661d17d..9ec7f36 100644 --- a/yes_crypt.go +++ b/yes_crypt.go @@ -92,7 +92,7 @@ func SHashYesCryptPassword(password string) (hash string, err error) { // Hash an password string with salt using default parameters with YesCrypt. func SHashYesCryptPasswordWithSalt(password string, salt string) (hash string, err error) { passwd := NewYesCryptPasswd() - hash, err = passwd.SHashPasswordWithSalt(salt, salt) + hash, err = passwd.SHashPasswordWithSalt(password, salt) if err != nil { return }