1

I am trying to implement Google Pay decryption method as mentioned.

https://developers.google.com/pay/api/android/guides/resources/payment-data-cryptography#decrypt-token

It mentions to use tink library with the example of Java (PaymentMethodTokenRecipient) but I'm unable to duplicate it for Golang.

1 Answers1

0

I'm not personally familiar with the library, but have a look at Tink.

There's a decrypt method that may do what you are after, and a cli that may help with how to use it: https://github.com/google/tink/blob/master/tools/testing/go/hybrid_decrypt_cli.go

Soc
  • 7,425
  • 4
  • 13
  • 30