Tink is a multi-language, cross-platform library that provides a simple and misuse-proof API for common cryptographic tasks.
Questions tagged [tink]
48 questions
1
vote
1 answer
Google TINK - Streaming AEAD Always returning an output file of 1 KB
I am trying to encrypt a file(txt, pdf, doc) using Google Tink - streaming AEAD encryption, below is the Java code which I am trying to execute. But all I get is 1 KB output encrypted file and no errors. All Input files whether 2 MB or more than 10…
![](../../users/profiles/5737945.webp)
hoch_london
- 11
- 2
1
vote
1 answer
Google Pay PaymentMethodTokenRecipient function implementation in Golang
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…
![](../../users/profiles/12466654.webp)
Aniket Srivastava
- 11
- 2
1
vote
2 answers
Decryption erorr when using tink in Java
I am trying to create an encrypted token that is to be sent as an REST API response. The end user then can send the same token during next request to this api, and I can parse it and get some context info (of the previous one).
Since I'm new to…
![](../../users/profiles/10789057.webp)
Termin4t0r
- 169
- 1
- 7
1
vote
1 answer
How to create master key in Tink android
I wanted to use Tink library and able to encrypt and decrypt data but not understanding what is the purpose of master key in its creation and how to create a master key for it.
private fun getOrGenerateNewKeysetHandle(): KeysetHandle {
…
![](../../users/profiles/11710056.webp)
marsuser
- 61
- 6
1
vote
1 answer
Using Symmetric keys in Tink
I am trying to store cleartext password in properties file and load that JSON using CleartextKeysetHandle.read
However, when I want to rotate the key, I would like to introduce another key which is another cleartext password. How can I load this key…
![](../../users/profiles/3044440.webp)
user3044440
- 113
- 9
1
vote
1 answer
How to generate a Tink key from a user-provided password
I want to store a keyset, and would like the file to be encrypted with key produced from a user-provided "master password". And of course, at a later point I'd like to, given the same master password, be able to load that keyset by decrypting the…
![](../../users/profiles/5295.webp)
avernet
- 28,976
- 43
- 119
- 160
1
vote
1 answer
Multiple private/public Key pairs in Tink
I started exploring "Tink" recently and now stuck at a particular problem, and couldn't find the solution in docs or online.
The case is: I want to have two sets of Public/Private keypairs. One would be active and other would be disabled.
What I…
![](../../users/profiles/1503786.webp)
Muhammad Umer
- 327
- 1
- 6
- 18
1
vote
1 answer
Google / Tink: XChaCha20Poly1305 encryption with custom non-random nonce
I would like to use Tink in order to replace Sodium-JNI on Android. Tink seems to be great and really easy to use.
But I have one problem. In my use case I have to exchange XChaCha20Poly1305 encrypted messages with other peers and the peers only…
![](../../users/profiles/10914839.webp)
Bruno Hase
- 13
- 3
1
vote
1 answer
byte array to stream encoding issue using google tink
I am trying to encrypt a string and using the Google's Tink library.
When I call the method encrypt and the encrypted string returns something like \<Ï~ß¾Ò0ÑP[oxRæ±E*;ÑRÂÉD«Øô§½:î. I tried Base64.DEFAULT, UTF-8 ISO-8859-1, US-ASCI and even…
![](../../users/profiles/9852406.webp)
Jashan Singh
- 11
- 1
1
vote
1 answer
How to install the Tink cryptographic library on Google Cloud Platform?
I've created an app on App Engine with Java Maven quickstart.
But including the Tink library in the dependencies and importing it the way described in its readme does not work as the library does not exist on Google Cloud and the readme is not…
![](../../users/profiles/9165398.webp)
goritskaia
- 13
- 3
0
votes
0 answers
Verify callbacks signature from Google Pay for Pasess (saves and deletions) in node js?
Here they recommend Tink library but there is no implementation for Node js, I'm looking for some example solution.
0
votes
1 answer
How to build Google tink library using bazel in C++?
I want to use Google tink library for my app. I bound my code using android ndk. However, I couldn't build Google tink library with bazel. I have tried their examples on github (https://github.com/google/tink). Moreover, I don't have any experience…
![](../../users/profiles/12845048.webp)
Savrona
- 83
- 6
0
votes
1 answer
Google Tink Hybrid params
Google Tink supports "hybrid encryption" - a convenience method of encrypting a symmetric key with an asymmetric one, encrypting a plaintext with the symmetric key, and bundling the two ciphertexts as one message.
However, seems like it basically…
![](../../users/profiles/513038.webp)
Erhannis
- 3,613
- 2
- 24
- 38
0
votes
1 answer
How to rotate keys?
I'm looking at the Tink documentation, but I don't see a clear way how to rotate a key. Basically, I would like to do somethink like:
KeyTemplate keyTemplate = AeadKeyTemplates.AES256_GCM;
KeysetHandle keysetHandle =…
![](../../users/profiles/14239262.webp)
eof
- 35
- 4
0
votes
1 answer
How to generate a Java tink key?
I'm using the Google Tink library in my Java project to encrypt two texts, one with Symmetric Key Encryption (SKE), and another one with Deterministic symmetric key encryption (DSKE).
This is a backend application, and I do not have a remote storage…
![](../../users/profiles/14136245.webp)
britney3
- 1
- 1