Skip to content

Commit

Permalink
Update error logger
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush-ap committed Apr 12, 2024
1 parent 485307f commit f480dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/security_utils/encryptorUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
EMPTY_SECRET = "secretKey is empty"
ERROR_WHILE_DECRYPTION = "Error while decryption %s: %s"
ENCRYPTED_DATA_DECRYPTED_DATA = "Encrypted Data: %s, Decrypted data: %s"
ERROR_WHILE_GENERATING_REQUIRED_SALT_FROM_S_S = "Error while generating required salt from %s: %s"
ERROR_WHILE_GENERATING_REQUIRED_SALT_FROM_S_S = "Error while generating required salt from %s"
ERROR_WHILE_VERIFY_HASH_DATA = "Hash Data not macth %s: %s"
)

Expand All @@ -37,7 +37,7 @@ func Decrypt(password, encryptedData, hashVerifier string) (string, error) {

salt, err := generateSalt(password)
if err != nil {
return "", fmt.Errorf(ERROR_WHILE_GENERATING_REQUIRED_SALT_FROM_S_S, password, err)
return "", fmt.Errorf(ERROR_WHILE_GENERATING_REQUIRED_SALT_FROM_S_S, err)
}

secretKey := deriveKey(password, salt)
Expand Down

0 comments on commit f480dd7

Please sign in to comment.