Skip to content

Commit

Permalink
Merge pull request #18 from Mastercard/fix/fix-docs
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
joseph-neeraj authored Sep 2, 2024
2 parents d0a3efd + c32937f commit f059ff6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ This library supports two types of encryption/decryption, both of which support
This library uses [JWE compact serialization](https://datatracker.ietf.org/doc/html/rfc7516#section-7.1) for the encryption of sensitive data.
The core methods responsible for payload encryption and decryption are `EncryptPayload` and `DecryptPayload` in the `encryption` package.

* `encryptPayload` usage:
* `EncryptPayload` usage:
```go
import "github.com/mastercard/client-encryption-go/encryption"
//

encryptedPayload := encryption.EncryptPayload(payload, *config)
```

* `decryptPayload` usage:
* `DecryptPayload` usage:
```go
import "github.com/mastercard/client-encryption-go/encryption"
//
Expand Down Expand Up @@ -255,7 +255,7 @@ Example:
encryptedPayload := "{" +
" \"encryptedData\": \"eyJraWQiOiI3NjFiMDAzYzFlYWRlM….Y+oPYKZEMTKyYcSIVEgtQw\"" +
"}"
payload = encryption.decryptPayload(encryptedPayload, config)
payload = encryption.DecryptPayload(encryptedPayload, config)
```

Output:
Expand All @@ -277,15 +277,15 @@ Output:

The core methods responsible for payload encryption and decryption are `EncryptPayload` and `DecryptPayload` in the `mastercard_encryption` package.

* `encryptPayload` usage:
* `EncryptPayload` usage:
```go
import "github.com/mastercard/client-encryption-go/mastercard_encryption"
//

encryptedPayload := encryption.EncryptPayload(payload, *config)
```

* `decryptPayload` usage:
* `DecryptPayload` usage:
```go
import "github.com/mastercard/client-encryption-go/mastercard_encryption"
//
Expand Down

0 comments on commit f059ff6

Please sign in to comment.