הגדרת Tink Go
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כל ספריות Tink Go מתפרסמות כמודולים של Go שאפשר להשתמש בהם עם כלים רגילים של Go או עם Bazel.
אחרי שמתקינים ומגדירים את Tink, ממשיכים לשלבים הבאים.
Tink Go
ספריית הליבה של Go היא tink-go, והגרסה האחרונה היא 2.4.0.
מריצים את הפקודה הבאה מתוך ספריית הפרויקט:
go get github.com/tink-crypto/tink-go/v2@v2.4.0
תוסף AWS KMS
התוסף של Tink Go ל-AWS KMS הוא tink-go-awskms, והגרסה העדכנית ביותר היא 2.1.0.
מריצים את הפקודה הבאה מתוך ספריית הפרויקט:
go get github.com/tink-crypto/tink-go-awskms/v2@2.1.0
תוסף Google Cloud KMS
התוסף של Tink Go ל-Google Cloud KMS הוא tink-go-gcpkms, והגרסה האחרונה שלו היא 2.2.0.
מריצים את הפקודה הבאה מתוך ספריית הפרויקט:
go get github.com/tink-crypto/tink-go-gcpkms/v2@v2.2.0
תוסף HashiCorp Vault
התוסף של Tink Go ל-HashiCorp Vault הוא tink-go-hcvault, והגרסה האחרונה שלו היא 2.3.0.
מריצים את הפקודה הבאה מתוך ספריית הפרויקט:
go get github.com/tink-crypto/tink-go-hcvault/v2@v2.3.0
השלבים הבאים
אחרי שמסיימים להגדיר את Tink, ממשיכים בשלבים הרגילים לשימוש ב-Tink:
- בחירת רכיב פרימיטיבי – בחירת הרכיב הפרימיטיבי שבו רוצים להשתמש בהתאם לתרחיש לדוגמה
- ניהול מפתחות – הגנה על המפתחות באמצעות KMS חיצוני, יצירת קבוצות מפתחות וביצוע רוטציה של המפתחות
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],null,["# Set up Tink Go\n\nAll Tink Go libraries are published as Go modules that are usable with [standard\nGo tooling](https://pkg.go.dev/cmd/go) or [Bazel](http://bazel.build).\n\nAfter installing and setting up Tink, continue with [Next Steps](#next_steps). \n\n### Tink Go\n\nThe core Go library is [tink-go](https://github.com/tink-crypto/tink-go) with\n[2.4.0](https://github.com/tink-crypto/tink-go/releases/tag/v2.4.0) as the latest release.\n\nGo tooling\n----------\n\nRun the following command from your project directory: \n\n go get github.com/tink-crypto/tink-go/v2@v2.4.0\n\n### AWS KMS Extension\n\nThe Tink Go [AWS KMS](https://aws.amazon.com/kms/) extension is\n[tink-go-awskms](https://github.com/tink-crypto/tink-go-awskms) with\n[2.1.0](https://github.com/tink-crypto/tink-go-awskms/releases/tag/v2.1.0) as the latest\nrelease.\n\nGo tooling\n----------\n\nRun the following command from your project directory: \n\n go get github.com/tink-crypto/tink-go-awskms/v2@2.1.0\n\n### Google Cloud KMS Extension\n\nThe Tink Go [Google Cloud KMS](https://cloud.google.com/kms/) extension is\n[tink-go-gcpkms](https://github.com/tink-crypto/tink-go-gcpkms) with\n[2.2.0](https://github.com/tink-crypto/tink-go-gcpkms/releases/tag/v2.2.0) as the latest\nrelease.\n\nGo tooling\n----------\n\nRun the following command from your project directory: \n\n go get github.com/tink-crypto/tink-go-gcpkms/v2@v2.2.0\n\n### HashiCorp Vault Extension\n\nThe Tink Go [HashiCorp Vault](https://www.vaultproject.io/) extension is\n[tink-go-hcvault](https://github.com/tink-crypto/tink-go-hcvault) with\n[2.3.0](https://github.com/tink-crypto/tink-go-hcvault/releases/tag/v2.3.0) as the latest\nrelease.\n\nGo tooling\n----------\n\nRun the following command from your project directory: \n\n go get github.com/tink-crypto/tink-go-hcvault/v2@v2.3.0\n\nNext steps\n----------\n\nOnce you've finished setting up Tink, continue with the standard Tink usage\nsteps:\n\n- [Choose a primitive](/tink/choose-primitive) -- Decide which primitive to use based on your use case\n- [Manage keys](/tink/key-management-overview) -- Protect your keys with your external KMS, generate keysets, and rotate your keys"]]