File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -153,12 +153,12 @@ func (e Enc) Decrypt(encryptedMsg []byte) (decryptedMsg []byte, err error) {
153
153
return aead .Open (nil , nonce , ciphertext , nil )
154
154
}
155
155
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]
157
157
func (e Enc ) EncryptEncode (plainTextMsg string ) (encryptedEncodedMsg string ) {
158
158
return base64 .RawURLEncoding .EncodeToString (e .Encrypt (plainTextMsg ))
159
159
}
160
160
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.
162
162
func (e Enc ) DecryptDecode (encryptedEncodedMsg string ) (plainTextMsg string , err error ) {
163
163
encryptedMsg , err := base64 .RawURLEncoding .DecodeString (encryptedEncodedMsg )
164
164
if err != nil {
You can’t perform that action at this time.
0 commit comments