tink-crypto / tink-go

Go implementation of Tink
https://developers.google.com/tink
Apache License 2.0
91 stars 4 forks source link

Google Pay decrypt. #3

Open qoyanchoz opened 1 year ago

qoyanchoz commented 1 year ago

Hi everyone! Maybe you can write some documentation or something. I've been unable to decrypt the payload Google sent me for 2 weeks now. I don't understand how to use your library because I can't find any examples. If any of you can help, like write an example to decrypt the payload. That would be great!

rafaeleupinheiro commented 11 months ago

Hey, guys! I'm also finding it difficult to use the library in my projects. I'm unable to decrypt a payload sent via Google Pay. If possible someone could write an example to decrypt the payload. I would be very grateful!

juergw commented 10 months ago

I guess you would like to use GPay integration here: https://developers.google.com/pay/api/web/guides/resources/payment-data-cryptography in Go. Unfortunately, this part of Tink is only available in Java, here: https://github.com/tink-crypto/tink-java-apps/

tink-go does not support this. But you may be able to use this here: https://github.com/google-pay/tink-jni-examples/ This wraps the Java implementation. Note that this is not maintained by the Tink team and we can't help you with that.

kgiedrius commented 10 months ago

@juergw It will be useful to have official Google Pay token decryption implementation using this library.