Set up Tink Go

All Tink Go libraries are published as Go modules that are usable with standard Go tooling or Bazel.

After installing and setting up Tink, continue with Next Steps.

Tink Go

The core Go library is tink-go with 2.4.0 as the latest release.

Go tooling

Run the following command from your project directory:

go get github.com/tink-crypto/tink-go/v2@v2.4.0

AWS KMS Extension

The Tink Go AWS KMS extension is tink-go-awskms with 2.1.0 as the latest release.

Go tooling

Run the following command from your project directory:

go get github.com/tink-crypto/tink-go-awskms/v2@2.1.0

Google Cloud KMS Extension

The Tink Go Google Cloud KMS extension is tink-go-gcpkms with 2.2.0 as the latest release.

Go tooling

Run the following command from your project directory:

go get github.com/tink-crypto/tink-go-gcpkms/v2@v2.2.0

HashiCorp Vault Extension

The Tink Go HashiCorp Vault extension is tink-go-hcvault with 2.3.0 as the latest release.

Go tooling

Run the following command from your project directory:

go get github.com/tink-crypto/tink-go-hcvault/v2@v2.3.0

Next steps

Once you've finished setting up Tink, continue with the standard Tink usage steps:

  • Choose a primitive – Decide which primitive to use based on your use case
  • Manage keys – Protect your keys with your external KMS, generate keysets, and rotate your keys