การตั้งค่าซิงก์
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณสามารถสร้าง Tink จากซอร์สโค้ดหรือใช้แพ็กเกจเฉพาะภาษาก็ได้ วิธีการต่อไปนี้จะช่วยคุณเริ่มต้นใช้งาน
หลังจากติดตั้งและตั้งค่า Tink เสร็จแล้ว ให้ทำตามขั้นตอนถัดไปที่ท้ายหน้านี้
Python
ไลบรารี Tink สำหรับ Python อย่าง tink-py รองรับ Python 3.9 ขึ้นไปใน macOS (x86-64 และ ARM64), Linux (x86-64 และ ARM64) และ Windows (x86-64) เวอร์ชันล่าสุดคือ
1.12.0 โดยสามารถติดตั้งในเครื่องได้โดยใช้ Pip หรือใช้กับ Bazel
Tink Python มีการผสานรวมกับ AWS
KMS, Google Cloud
KMS และ HashiCorp
Vault
PIP
คุณสามารถติดตั้งรุ่นไบนารี Tink Python สำหรับระบบได้จาก PyPI โดยเรียกใช้คำสั่งต่อไปนี้
pip3 install tink==1.12.0
# Core Tink + Google Cloud KMS extension.
pip3 install tink[gcpkms]==1.12.0
# Core Tink + AWS KMS extension.
pip3 install tink[awskms]==1.12.0
# Core Tink + HashiCorp Vault KMS extension.
pip3 install tink[hcvault]==1.12.0
# Core Tink + all the KMS extensions.
pip3 install tink[all]==1.12.0
หากไม่มีแพ็กเกจไบนารีที่เผยแพร่สำหรับสภาพแวดล้อมของคุณ pip
จะหันไปใช้การสร้างโปรเจ็กต์โดยใช้การเผยแพร่ซอร์สโค้ดที่เผยแพร่ไปยัง PyPI โดยอัตโนมัติ ในกรณีนี้ คุณต้องติดตั้ง Bazel หรือ Bazelisk และคอมไพเลอร์ protobuf เพื่อที่จะสร้างโปรเจ็กต์ให้สำเร็จ
Bazel
สำหรับ Tink Python 1.12 ขึ้นไป ผู้ใช้ Bazel ต้องใช้ MODULE.bazel
ดังนี้
bazel_dep(name = "tink_py")
archive_override(
module_name = "tink_py",
urls = ["https://github.com/tink-crypto/tink-py/releases/download/v1.12.0/tink-py-1.12.0.zip"],
strip_prefix = "tink-py-1.12.0",
sha256 = "5968d0ba84f1fc958f685cfdfc667bfb1d8414a22eaa6f502b290a23af2aba43",
)
ขณะนี้เราไม่ได้เผยแพร่ Tink Python ในรีจิสทรีส่วนกลางของ Bazel
ขั้นตอนถัดไป
เมื่อตั้งค่า Tink เสร็จแล้ว ให้ทำตามขั้นตอนการใช้งาน Tink มาตรฐานต่อไปนี้
- เลือกพรอมต์ - เลือกพรอมต์ที่จะใช้ตามกรณีการใช้งาน
- จัดการคีย์ - ปกป้องคีย์ด้วย KMS ภายนอก สร้างชุดคีย์ และหมุนเวียนคีย์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-06-05 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-06-05 UTC"],[[["Tink can be built from source or installed using language-specific packages for C++, Go, Java, Objective-C, and Python."],["Tink offers core libraries and extensions for cloud key management systems like AWS KMS and Google Cloud KMS."],["After installation, users should choose a cryptographic primitive and establish a key management strategy."],["Language-specific instructions and dependencies are detailed for building and using Tink in each supported language."],["Tink supports various operating systems, compilers, and build systems for each language, ensuring flexibility for developers."]]],["Tink can be set up via source or language-specific packages. For C++, use Bazel or CMake, ensuring dependencies like Protobuf and Abseil are met. Go uses `go get` for core and extension libraries like AWS KMS, Google Cloud KMS, and HashiCorp Vault. Python employs `pip3 install` or Bazel for installation, supporting extensions. After setting up Tink, users should choose a primitive and manage keys.\n"]]