Tink Python 1.9.0
Tink is a multi-language, cross-platform library that provides simple and misuse-proof APIs for common cryptographic tasks.
This is Tink Python 1.9.0
What's new
This is the first release from https://github.com/tink-crypto/tink-py.
The complete list of changes since 1.8.0 can be found here.
- Made KMS client registration API
register_kms_client
public - Add
json_proto_keyset_format
andproto_keyset_format
APIs to
serialize/deserialize keysets - Made dependencies for KMS extensions optional (6f0cf98, #14)
- Fixed type annotations of
expected_*()
functions intink.jwt.JwtValidator
. - Dropped support for Python 3.7 (1ec991e).
- Upgraded dependencies:
- bazel@6.0.0 => bazel@6.4.0
- bazel_skylib@1.4.2 => bazel_skylib@1.5.0
- protobuf@21.9 => protobuf@25.1
- tink-cc@2.0.0 => tink-cc@2.1.0
To see what we're working towards, check our project roadmap.
Get started
To get started using Tink, see the setup guide.
Pip
# Core Tink.
pip3 install tink==1.9.0
# Core Tink + Google Cloud KMS extension.
pip3 install tink[gcpkms]==1.9.0
# Core Tink + AWS KMS extension.
pip3 install tink[awskms]==1.9.0
# Core Tink + all the KMS extensions.
pip3 install tink[all]==1.9.0
Bazel
Tink Python can be used in a Bazel project as a pip dependency using rules_python’s pip_parse macro, or tink-py can be added as a Bazel build dependency to your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "tink_py",
urls = ["https://github.com/tink-crypto/tink-py/releases/download/v1.9.0/tink-py-1.9.0.zip"],
strip_prefix = "tink-py-1.9.0",
sha256 = "c5f9a7b58b79ef0e1b957154672f766489ea0ac956ad187941f950f2dc262e71",
)
load("@tink_py//:tink_py_deps.bzl", "tink_py_deps")
tink_py_deps()
load("@tink_py//:tink_py_deps_init.bzl", "tink_py_deps_init")
tink_py_deps_init("tink_py")
# ...