mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Integration and unit tests for logger.go and file.go in utils
This commit is contained in:
committed by
Dan Christian Bogos
parent
f8e636074b
commit
c829c775e2
@@ -966,11 +966,8 @@ func AESDecrypt(encrypted string, encKey string) (txt string, err error) {
|
||||
nonceSize := aesGCM.NonceSize()
|
||||
nonce, ciphertext := enc[:nonceSize], enc[nonceSize:]
|
||||
var plaintext []byte
|
||||
if plaintext, err = aesGCM.Open(nil, nonce, ciphertext, nil); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s", plaintext), nil
|
||||
plaintext, err = aesGCM.Open(nil, nonce, ciphertext, nil)
|
||||
return string(plaintext), err
|
||||
}
|
||||
|
||||
// Hash generates the hash text
|
||||
|
||||
Reference in New Issue
Block a user