Tink is a multi-language, cross-platform library that provides a simple and misuse-proof API for common cryptographic tasks.
Questions tagged [tink]
72 questions
1
vote
1 answer
Decryption failed after registering AeadConfig more than once?
I'm encrypting some text and trying to decrypt it, however it's failing to decrypt when I am using a different AeadConfig.register() to decrypt than to encrypt. I'm wondering how to resolve this problem because I'll be encrypting on one activity and…

user9333933
- 247
- 1
- 3
- 14
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…

user3044440
- 115
- 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…

avernet
- 30,895
- 44
- 126
- 163
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…

Muhammad Umer
- 363
- 2
- 8
- 19
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…

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…

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…

freealise
- 13
- 3
0
votes
0 answers
Can we use Google Tink to encrypt a file using c#?
I want to encrypt files using c# and those files should be able to decrypt in Android and IOS apps.
I want to know whether this can be done using Tink.
Seems c# is not supported but at least if I could do it in c++ and prepare a dll so that I can…

nuwancy
- 361
- 4
- 4
0
votes
0 answers
Google Tink Library - Large Dataset encryption
Does Tink Library cache the keys? If I need to encrypt/decrypt a million records, does it make a GCP/KMS api call each time to fetch the key?

sandeepn09
- 11
0
votes
0 answers
How to use cmake to build a library with a link to another library aliased
I am trying to build a library that uses the Google tink library and the AWS C++ SDK, but it fails with the following error:
Target "tcc-tink" links to target "AWS::Crypto" but the target was not found. Perhaps a find_package() call is missing for…

John R Ramsden
- 355
- 4
- 14
0
votes
0 answers
Decryption using streaming AEAD (google tink)
When I try to decrypt ciphertext using streaming aead primitive as part of google tink, I get the following error: java.io.IOException: No matching key found for the ciphertext in the stream
Below is my code:
ByteBuffer buffer =…

Udit Gupta
- 15
- 1
- 5
0
votes
0 answers
Utilizing an existing key to do encryption of plain text using TINK in python
Following is the code for generating cipher text using TINK :
keyset_handle = new_keyset_handle(aead.aead_key_templates.AES256_GCM)
aead_primitive = keyset_handle.primitive(aead.Aead)
ciphertext = aead_primitive.encrypt(encoded_data_message,…

vik_singh
- 55
- 1
- 1
- 9
0
votes
0 answers
Import and use a Tink AEAD KMS key in BigQuery
I've gone with the approach of using a kms_aead_key template to generate a DEK with the key in KMS acting as the KEK and then writing the encrypted key out for use in BigQuery as a variable.
I can’t seem to decrypt the DEK in BigQuery. It always…

James Anderson
- 420
- 5
- 13
0
votes
0 answers
Google Pay decryption error: Could not verify intermediate signing key signature
I am trying to decrypt a google payment token using Python google-pay-token-decryption package following this link https://github.com/yoyowallet/google-pay-token-decryption. Currently I keep getting errors such as Could not verify message signature…

nartiah
- 1
0
votes
1 answer
How to use Tink's envelope encription with Deterministic AEAD on GCP with python?
I would like to use Tink's envelope encription with Deterministic AEAD on GCP. I want to use it in python. I want to store a KEK key in GCP KMS and and encrypt the DEK key with it.
There is an example how to use Deterministic AEAD, but it doesn't…

Balázs Tóth
- 1
- 1