Google's cryptography library with APIs that are hard to misuse
open sourceApache-2.0free
Tink is an open source cryptography library written by cryptographers and security engineers at Google, for developers without a cryptography background. Its APIs cover AEAD, streaming AEAD, deterministic AEAD, MAC, PRF, digital signatures, hybrid encryption and JWTs, built on libraries like BoringSSL and the Java Cryptography Architecture, with dangerous operations kept behind separate APIs. Keys live in keysets that make rotation and algorithm changes easy, and can be encrypted with or stored in AWS KMS, Google Cloud KMS, HashiCorp Vault, Android Keystore and iOS Keychain. It has implementations in Java (including Android), C++, Python, Go and Objective-C, each in its own repository, plus Tinkey, a command-line tool for managing keysets. Google uses it in hundreds of products. For a small C library of the same idea, see libsodium.
Problems it solves
- encrypt data in my app without getting the cryptography wrong
- rotate encryption keys without breaking old ciphertexts
- encrypt data with keys kept in AWS KMS or Google Cloud KMS
- sign and verify JWTs and messages safely across Java, Go and Python services
Features
- AEAD, streaming and deterministic AEAD, MAC and PRF
- digital signatures and hybrid encryption
- JWT MAC and signatures
- keysets for key rotation and crypto agility
- AWS KMS, Google Cloud KMS and HashiCorp Vault integrations
- Java, C++, Python, Go and Objective-C implementations
- Tinkey CLI for keyset management
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Tink does.
- libsodium Easy-to-use, portable cryptography library
- Google Cloud KMS Create and manage cryptographic keys, including hardware-backed Cloud HSM keys, in Google Cloud
- SOPS Simple and flexible tool for managing secrets
- AWS CloudHSM Single-tenant FIPS-validated hardware security modules in your AWS account
- HashiCorp Vault Secrets management, encryption as a service and privileged access management
- Cryptomator Client-side encryption for your cloud storage
