Registry / crypto / google-tink

google-tink

JSON →
library1.7.0gogounverified

A multi-language, cross-platform library for cryptographic operations.

go get github.com/google/tink
INSTALL
IMPORT
SIG · GOOGLE-TINK
G
google-tink
cryptogov1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tink
github.com/google/tink/go/tink

Creates an AEAD primitive and encrypts a message.

package main import ( "fmt" "github.com/google/tink/go/tink" "github.com/google/tink/go/aead" ) func main() { kh, _ := tink.NewKeyHandle(aead.AES256GCMKeyTemplate()) a, _ := aead.New(kh) ct, _ := a.Encrypt([]byte("message"), nil) fmt.Println(ct) }
Debug
Known issues
gotchaTink v1.7.0 uses Go modules with a different import path structure; ensure you import the correct subpackage.
fix
Use import paths like github.com/google/tink/go/aead, github.com/google/tink/go/tink, etc.
affects: >=1.7.0
Upgrade
Version history
1.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
google-tink — go get google-tink · libregistry