Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #111 from srinandan/issue110
Browse files Browse the repository at this point in the history
Fixed: newline after decryption #110
  • Loading branch information
srinandan authored Jan 17, 2023
2 parents 9c360a9 + 269436a commit 09a1e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloudkms/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package cloudkms

import (
"bytes"
"context"
"encoding/base64"
"fmt"
Expand Down Expand Up @@ -87,5 +88,5 @@ func DecryptSymmetric(name string, b64CipherText []byte) ([]byte, error) {
return nil, fmt.Errorf("decrypt: %v", err)
}

return resp.Plaintext, nil
return bytes.TrimSpace(resp.Plaintext), nil
}

0 comments on commit 09a1e84

Please sign in to comment.