Skip to content

Commit aa8a984

Browse files
committed
enhance docs
1 parent 3f4986e commit aa8a984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

enc/enc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ func (e Enc) Decrypt(encryptedMsg []byte) (decryptedMsg []byte, err error) {
153153
return aead.Open(nil, nonce, ciphertext, nil)
154154
}
155155

156-
// EncryptEncode is like [Encrypt] except that it returns a string that is encoded using [base64.RawURLEncoding]
156+
// EncryptEncode is like [Enc.Encrypt] except that it returns a string that is encoded using [base64.RawURLEncoding]
157157
func (e Enc) EncryptEncode(plainTextMsg string) (encryptedEncodedMsg string) {
158158
return base64.RawURLEncoding.EncodeToString(e.Encrypt(plainTextMsg))
159159
}
160160

161-
// DecryptDecode takes an encryptedEncodedMsg that was generated using [EncryptEncode] and returns the original un-encrypted string.
161+
// DecryptDecode takes an encryptedEncodedMsg that was generated using [Enc.EncryptEncode] and returns the original un-encrypted string.
162162
func (e Enc) DecryptDecode(encryptedEncodedMsg string) (plainTextMsg string, err error) {
163163
encryptedMsg, err := base64.RawURLEncoding.DecodeString(encryptedEncodedMsg)
164164
if err != nil {

0 commit comments

Comments
 (0)