Tink কি?
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Tink হল একটি ওপেন সোর্স ক্রিপ্টোগ্রাফি লাইব্রেরি যা Google-এর ক্রিপ্টোগ্রাফার এবং সিকিউরিটি ইঞ্জিনিয়ারদের দ্বারা লেখা। Tink-এর নিরাপদ এবং সাধারণ APIগুলি ব্যবহারকারী-কেন্দ্রিক নকশা, সাবধানে বাস্তবায়ন এবং কোড পর্যালোচনা এবং ব্যাপক পরীক্ষার মাধ্যমে সাধারণ সমস্যাগুলি হ্রাস করে। Tink কোন উদ্দেশ্য পূরণের জন্য ডিজাইন করা হয়েছে তার আরও অন্তর্দৃষ্টির জন্য এই পৃষ্ঠার লক্ষ্য বিভাগটি দেখুন।
Tink ক্রিপ্টোগ্রাফি ব্যাকগ্রাউন্ড ছাড়াই ব্যবহারকারীদের নিরাপদে সাধারণ ক্রিপ্টোগ্রাফিক কাজ বাস্তবায়ন করতে সাহায্য করে। Google-এ, Tink শত শত পণ্য এবং সিস্টেমে মোতায়েন করা হয়েছে।
আমি কেন Tink ব্যবহার করব?
Tink ব্যবহার করার সবচেয়ে গুরুত্বপূর্ণ কারণ হল:
এটা ব্যবহার করা সহজ
ক্রিপ্টোগ্রাফি সঠিক পেতে কঠিন. Tink-এর সাথে, আপনি কোডের কয়েকটি লাইন ব্যবহার করে অন্তর্নির্মিত নিরাপত্তা গ্যারান্টি সহ ডেটা এনক্রিপ্ট বা সাইন করতে পারেন। Tink আপনাকে বহিরাগত কী ম্যানেজমেন্ট সিস্টেম (KMSs) ব্যবহার করে কী বা সুরক্ষিত কীগুলি ঘোরাতে সাহায্য করতে পারে।
এটা নিরাপদ
Tink বোরিংএসএসএল এবং জাভা ক্রিপ্টোগ্রাফি আর্কিটেকচারের মতো সুপরিচিত লাইব্রেরির উপরে সুরক্ষা সুরক্ষা যোগ করে এবং সেগুলিকে সরাসরি ইন্টারফেসে দেখায়, যাতে অডিটর এবং সরঞ্জামগুলি দ্রুত ফাঁক খুঁজে পেতে পারে। Tink এপিআইগুলিকেও আলাদা করে যা সম্ভাব্য বিপজ্জনক, তাই আপনি তাদের নিরীক্ষণ করতে পারেন।
এটা সামঞ্জস্যপূর্ণ
টিঙ্ক সাইফারটেক্সট বিদ্যমান ক্রিপ্টোগ্রাফি লাইব্রেরির সাথে সামঞ্জস্যপূর্ণ। টিঙ্ক অ্যামাজন কেএমএস, গুগল ক্লাউড কেএমএস, অ্যান্ড্রয়েড কীস্টোর এবং আইওএস কীচেইনে কী এনক্রিপ্ট করা বা সংরক্ষণ করা সমর্থন করে।
কে Tink ব্যবহার করছে?
Tink ব্যাপকভাবে Google, Square এবং Citadel সহ Google ক্লাউড গ্রাহকদের এবং Google Pay অংশীদারদের দ্বারা ব্যাপকভাবে ব্যবহৃত হয়। Tink জেটপ্যাক সিকিউরিটি লাইব্রেরিকেও ক্ষমতা দেয়, যা স্ল্যাক, এডিডাস, এয়ারবিএনবি এবং নেক্সটডোরের মতো অনেক জনপ্রিয় অ্যান্ড্রয়েড অ্যাপকে সুরক্ষিত করে।
টিঙ্ক গোল
অন্যান্য ক্রিপ্টোগ্রাফিক লাইব্রেরিগুলির তুলনায় টিঙ্কের প্রধান লক্ষ্যগুলি কী এবং এই লক্ষ্যগুলি অর্জনের জন্য টিঙ্ক ব্যবহার করে এমন প্রধান প্রক্রিয়াগুলি কী কী?
সংক্ষেপে, টিঙ্কের দুটি লক্ষ্য রয়েছে:
- ক্রিপ্টোগ্রাফিক তত্পরতা প্রচার করুন : ব্যবহারকারীদের একটি সহজ উপায়ে কী এবং অ্যালগরিদম পরিবর্তন করতে সক্ষম হওয়া উচিত।
- নিরাপত্তা পর্যালোচনা সক্ষম করুন : Tink-এর লক্ষ্য ব্যবহারকারীদের কোড লিখতে অনুমতি দেওয়া যার নিরাপত্তা স্থানীয়ভাবে পর্যালোচনা করা যেতে পারে, এমন ইন্টারফেস প্রদান করে যা স্পষ্ট নিরাপত্তা গ্যারান্টি দেয়।
এই লক্ষ্যগুলি অর্জনের জন্য টিঙ্ক যে প্রধান প্রক্রিয়াগুলি ব্যবহার করে তা নিম্নরূপ:
- Tink গুরুত্বপূর্ণ বিমূর্ততা হিসাবে আদিম এবং ইন্টারফেস প্রদান করে। এই বিমূর্ততা ব্যবহারকারীদের কোড লিখতে দেয় যা ব্যবহার করার জন্য সঠিক অ্যালগরিদম নির্দিষ্ট করে না, বরং প্রত্যাশিত নিরাপত্তা ধারণা নির্দিষ্ট করে।
- Tink একটি "কীসেট" এর ধারণা ব্যবহার করে, যা একটি নির্দিষ্ট আদিমের সাথে যুক্ত কীগুলির একটি সেট। এর ফলে ব্যবহারকারীরা কোড লিখতে পারেন যা একাধিক কী দিয়ে কাজ করে।
- Tink-এ, কীগুলি শুধুমাত্র অন্তর্নিহিত কী উপাদান দ্বারা নির্দিষ্ট করা হয় না, ক্রিপ্টোগ্রাফিক অ্যালগরিদম, সেইসাথে সমস্ত পরামিতিও। এর মানে হল যে একটি টিঙ্ক কী সর্বদা সমস্ত সম্ভাব্য ফাংশন থেকে একটি অনন্য ক্রিপ্টোগ্রাফিক ফাংশন নির্বাচন করে যা বিদ্যমান থাকতে পারে এবং ব্যাখ্যার জন্য কোনও জায়গা ছেড়ে দেয় না।
নিম্নলিখিত বিভাগগুলি এই ধারণাগুলিকে আরও বিশদে ব্যাখ্যা করে।
ক্রিপ্টোগ্রাফিক তত্পরতা
Google-এ সফ্টওয়্যার ইঞ্জিনিয়ারিং বিবেচনা করুন, সফ্টওয়্যার প্রকৌশলের ক্ষেত্রে শেখা পাঠ সম্পর্কে একটি বই, যার সাবটাইটেল "সময়ের সাথে প্রোগ্রামিং থেকে শেখা পাঠ"। এটিতে, লেখকরা জিনিসগুলি পরিবর্তিত হওয়ার বিষয়টির অন্তর্নিহিততাগুলি অনুনয় করার জন্য প্রচুর পরিমাণে যান। এই সত্যটি টিঙ্কের নকশার অনেকাংশকেও প্রভাবিত করেছিল। ক্রিপ্টোগ্রাফিতে, একজন পরিবর্তনের জন্য প্রস্তুত হওয়া গুরুত্বপূর্ণ। কীগুলি লিক হবে এবং অ্যালগরিদমগুলি ভেঙে যাবে৷ কী এবং অ্যালগরিদমগুলি পরিবর্তন করতে সক্ষম হওয়া অনেক ব্যবহারকারীর জন্য অত্যন্ত গুরুত্বপূর্ণ এবং প্রস্তুত থাকা বিচক্ষণ।
নিরাপত্তা পর্যালোচনা এবং স্থানীয় বৈশিষ্ট্য
Tink আমাদের AEAD ইন্টারফেসের মতো ইন্টারফেসের ব্যবহার প্রচার করে, যা ব্যবহারকারীদের ডেটা এনক্রিপ্ট করতে দেয়। অন্যান্য নিরাপত্তা গ্যারান্টিগুলির মধ্যে, একটি AEAD গ্যারান্টি দেয় যে একই স্ট্রিংয়ের একাধিক এনক্রিপশনের ফলে বিভিন্ন সাইফারটেক্সট হয়।
এটি কীভাবে ব্যবহার করা যেতে পারে তা দেখতে, ধরুন একজন প্রকৌশলী একটি ব্যবহারকারী কুকিতে কিছু সংবেদনশীল আইডি সংরক্ষণ করতে চান। তারা একটি ক্লাস প্রদান করতে পারে যেমন:
class IdEncrypter {
public static IdEncrypter createFromAead(Aead aead);
public String encrypt(long id) throws GeneralSecurityException;
public long decrypt(String encrypted) throws GeneralSecurityException;
};
একটি Aead
পাস করলে নিম্নলিখিত বৈশিষ্ট্যগুলি পাওয়া যায়:
- কোডটি যোগাযোগ করে যে
IdEncrypter
এর কাজ করার জন্য, এটি একটি Aead
প্রদান করে নিরাপত্তা বৈশিষ্ট্য সহ একটি এনক্রিপশন স্কিম প্রয়োজন। বিকল্পভাবে, একটি DeterministicAead
যথেষ্ট হবে না -- IdEncrypter
প্রয়োজন হয় যে একই আইডির দুটি এনক্রিপশন আলাদা। অন্যদিকে, একটি AES GCM এনক্রিপ্টারের একটি উদাহরণ (একটি Aead
এর একটি বিশেষ উদাহরণ) প্যারামিটার হিসাবে নেওয়া অত্যধিক কঠোর হবে: IdEncrypter
এর কাজ করার জন্য যেকোন Aead যথেষ্ট, এবং এটি একটি নির্দিষ্ট অ্যালগরিদম হওয়ার প্রয়োজন নেই৷ - একটি নিরাপত্তা পর্যালোচনা অ্যাকাউন্টে এই পয়েন্ট নিতে পারে. কোথাও, কেউ
Aead
এর একটি সাবক্লাস তৈরি করেছে যা IdEncrypter
এর সাথে ব্যবহারের জন্য নিরাপদ নয় কিনা তা পরীক্ষা করার জন্য একজন নিরাপত্তা পর্যালোচককে পুরো কোড সংগ্রহস্থলের মধ্যে দিয়ে যেতে হবে না। পরিবর্তে, Tink নিরাপত্তা বৈশিষ্ট্য প্রদান করে যা সমস্ত Aead অবজেক্টের আছে, এবং পর্যালোচক পরীক্ষা করতে পারেন যে এইগুলি যথেষ্ট।
বিশেষ করে দ্বিতীয় পয়েন্টের জন্য অনেক যত্ন প্রয়োজন। ব্যবহারকারীরা প্রায়ই অ্যালগরিদম যোগ করতে বলে যা 'পুরোপুরি নয়' একটি Aead
। পূর্ববর্তী পয়েন্টটি ব্যাখ্যা করে যে এটি কেন বিপজ্জনক: যদি Aead
এর কোনো বাস্তবায়ন উপলব্ধ থাকে যা প্রয়োজনীয় নিরাপত্তা গ্যারান্টি প্রদান না করে, তাহলে IdEncrypter
অনিরাপদ হয়ে উঠতে পারে এবং নিরাপত্তা পর্যালোচনা করা প্রকৌশলীকে বস্তুটি ইনস্ট্যান্ট করা হয়েছে কিনা তা পরীক্ষা করার জন্য অতিরিক্ত কোড পরীক্ষা করতে হবে। সঠিকভাবে
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 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-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eTink is an open-source cryptography library designed for easy and secure implementation of common cryptographic tasks, even for users without a cryptography background.\u003c/p\u003e\n"],["\u003cp\u003eTink prioritizes security by adding protections on top of existing libraries like BoringSSL, using distinct APIs for potentially risky operations, and ensuring ciphertext compatibility with other libraries.\u003c/p\u003e\n"],["\u003cp\u003eTink promotes cryptographic agility by enabling easy key and algorithm changes, and it supports integration with external key management systems like Amazon KMS and Google Cloud KMS.\u003c/p\u003e\n"],["\u003cp\u003eDesigned with security reviews in mind, Tink utilizes interfaces with clear security guarantees and the concept of keysets for enhanced security and code clarity.\u003c/p\u003e\n"],["\u003cp\u003eGoogle, Square, and Citadel are among the many companies that utilize Tink, further demonstrating its reliability and widespread adoption within various applications and systems.\u003c/p\u003e\n"]]],["Tink, a Google-developed open-source cryptography library, simplifies secure cryptographic implementation for users, even without cryptography expertise. It's designed for simplicity, security, and compatibility, supporting key rotation and external Key Management Systems (KMS). Tink prioritizes cryptographic agility, enabling easy key and algorithm changes, and facilitates security reviews by providing clear interfaces and security guarantees. It uses primitives, keysets, and comprehensive key specifications to achieve these goals, ensuring secure, verifiable, and adaptable cryptographic operations.\n"],null,["# What is Tink?\n\nTink is an open-source cryptography library written by cryptographers and\nsecurity engineers at Google. Tink's secure and simple APIs reduce common\npitfalls through user-centered design, careful implementation and code reviews,\nand extensive testing. See the [Goals](#tink_goals) section on this page for\nmore insight into which objectives Tink was designed to fulfil.\n\nTink helps users without a cryptography background safely implement common\ncryptographic tasks. At Google, Tink has been deployed in hundreds of products\nand systems.\n\nWhy should I use Tink?\n----------------------\n\nThe most important reasons to use Tink are:\n\n- **It's simple to use**\n\n Cryptography is difficult to get right. With Tink, you can\n [encrypt](/tink/encrypt-data) or [sign data](/tink/digitally-sign-data) with\n built-in security guarantees using just a few lines of code. Tink can also\n help you rotate keys or secure keys using external Key Management Systems\n (KMSs).\n- **It's secure**\n\n Tink adds security protections on top of well known libraries like BoringSSL\n and Java Cryptography Architecture and shows them right in the interfaces,\n so auditors and tools can quickly find gaps. Tink also separates APIs that\n are potentially dangerous, so you can monitor them.\n- **It's compatible**\n\n Tink ciphertexts are compatible with existing cryptography libraries. Tink\n also supports [encrypting or storing keys](/tink/client-side-encryption) in\n Amazon KMS, Google Cloud KMS, Android Keystore, and iOS Keychain.\n\nWho's using Tink?\n-----------------\n\nTink is widely used by many companies, including Google, Square, and Citadel, as\nwell as hundreds of Google Cloud customers and Google Pay partners. Tink also\npowers the Jetpack Security library, which secures many popular Android apps\nlike Slack, Adidas, AirBnb, and Nextdoor.\n\nTink Goals\n----------\n\nWhat are the main goals of Tink compared to other cryptographic libraries, and\nwhat are the main mechanisms which Tink uses to achieve these goals?\n\nIn short, Tink has two goals:\n\n1. *Promote cryptographic agility*: Users should be able to change keys and algorithms in a simple way.\n2. *Enable security reviews*: Tink aims to allow users to write code whose security can be reviewed locally, by providing interfaces which give clear security guarantees.\n\nThe main mechanisms Tink uses to achieve these goals are as follows:\n\n1. Tink provides primitives and interfaces as important abstractions. These abstractions allow users to write code which does not specify the exact algorithm to be used, but instead specifies the expected security notion.\n2. Tink uses the notion of a \"keyset\", which is a set of keys that are associated with a particular primitive. This results in users writing code which works with multiple keys.\n3. In Tink, keys are not only specified by the underlying key material, but also the cryptographic algorithm, as well as all parameters. This means that a Tink key always selects a unique cryptographic function from all possible functions which can exist, and leaves no room for interpretation.\n\nThe following sections explain these concepts in more detail.\n\n### Cryptographic agility\n\nConsider [Software Engineering at Google](https://abseil.io/resources/swe-book),\na book about lessons learned in the field of software engineering, with the\nsubtitle \"lessons learned from programming over time\". In it, the authors go to\ngreat lengths to implore the implications of the fact that things change. This\nfact also impacted much of the design of Tink. In cryptography, it is important\nthat one prepares for change. Keys will leak, and algorithms will be broken.\nBeing able to switch out keys and algorithms is crucial for many users, and\nbeing prepared is prudent.\n\n### Security reviews and local properties\n\nTink promotes the use of interfaces, such as our AEAD interface, which allows\nusers to encrypt data. Among [other security guarantees](https://developers.google.com/tink/aead#security_guarantees), an AEAD\nguarantees that multiple encryptions of the same string result in different\nciphertexts.\n\nTo see how this can be used, suppose an engineer wants to store some sensitive\nID in a user cookie. They might provide a class such as this: \n\n class IdEncrypter {\n public static IdEncrypter createFromAead(Aead aead);\n\n public String encrypt(long id) throws GeneralSecurityException;\n public long decrypt(String encrypted) throws GeneralSecurityException;\n };\n\nPassing an `Aead` obtains the following properties:\n\n1. The code communicates that for `IdEncrypter` to do its job, it requires an encryption scheme with the security properties an [`Aead` provides](https://developers.google.com/tink/aead#security_guarantees). Alternatively, a [`DeterministicAead`](https://developers.google.com/tink/deterministic-aead) wouldn't be enough -- the `IdEncrypter` requires that two encryptions of the same id are different. On the other hand, taking as parameter an instance of an AES GCM encrypter (one particular instance of an `Aead`) would be overly strict: any Aead is enough for `IdEncrypter` to do its job, and it does not need to be one specific algorithm.\n2. A security review can take this point into account. A security reviewer does not need to go through all of the entire code repository to check if somewhere, someone made a subclass of `Aead` which is not secure for use with `IdEncrypter`. Instead, Tink provides security properties which all Aead objects have, and the reviewer can check that these are sufficient.\n\nIn particular the second point requires a lot of care. Users often ask to add\nalgorithms which are 'not quite' an `Aead`. The previous point illustrates why\nthis is dangerous: if there is any implementation of `Aead` available which does\nnot provide the required security guarantees, `IdEncrypter` can become insecure,\nand the engineer performing a security review needs to examine additional code\nto check that the object is instantiated correctly."]]