টিঙ্কের মূল ধারণাগুলি বুঝুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি যখন প্রথমবার টিঙ্কের সাথে কাজ শুরু করেন, তখন আপনার যাত্রা শুরু করার আগে আপনার কিছু মূল ধারণা বোঝা উচিত; এই নিম্নলিখিত বিভাগে বর্ণনা করা হয়.
আদিম
Tink ক্রিপ্টোগ্রাফিক বিল্ডিং ব্লক হিসাবে আদিম ব্যবহার করে যা একটি অন্তর্নিহিত অ্যালগরিদম পরিচালনা করে যাতে ব্যবহারকারীরা ক্রিপ্টোগ্রাফিক কাজগুলি নিরাপদে সম্পাদন করতে পারে। একটি আদিম একটি ক্রিপ্টোগ্রাফিক অ্যালগরিদমের বিশদ বিবরণ এবং কী প্রকারকে সংজ্ঞায়িত করে।
টিঙ্ক দ্বারা সমর্থিত আদিম:
- অ্যাসোসিয়েটেড ডেটার সাথে প্রমাণীকৃত এনক্রিপশন (AEAD) : ডেটা এনক্রিপশনের জন্য সবচেয়ে সাধারণ আদিম; সর্বাধিক এনক্রিপশন প্রয়োজনের জন্য উপযুক্ত। AEAD প্লেইনটেক্সট গোপনীয়তা প্রদান করে এবং এর অখণ্ডতা এবং সত্যতা যাচাই করার অনুমতি দেয়। অ্যাসোসিয়েটেড ডেটা (AEAD) এর সাথে প্রমাণীকৃত এনক্রিপশন দেখুন।
- ডিটারমিনিস্টিক এনক্রিপশন: একটি আদিম যা সর্বদা একটি প্রদত্ত প্লেইনটেক্সট এবং কীর জন্য একই সাইফারটেক্সট তৈরি করে। এটি ঝুঁকিপূর্ণ হতে পারে, কারণ একজন আক্রমণকারীকে শুধুমাত্র এটি সনাক্ত করতে একটি প্রদত্ত প্লেইনটেক্সট ইনপুটের সাথে কোন সাইফারটেক্সটটি মিলছে তা খুঁজে বের করতে হবে। ডিটারমিনিস্টিক AEAD দেখুন।
- ডিজিটাল স্বাক্ষর : স্বাক্ষরিত ডেটার সত্যতা এবং অখণ্ডতা নিশ্চিত করার জন্য একটি অপ্রতিসম ( অসমমিতিক কী এনক্রিপশন দেখুন) আদিম৷ ডিজিটাল স্বাক্ষর দেখুন।
- হাইব্রিড এনক্রিপশন : একটি আদিম যা অপ্রতিসম কী এনক্রিপশন এবং সিমেট্রিক কী এনক্রিপশনকে একত্রিত করে (দেখুন অ্যাসিমেট্রিক কী এনক্রিপশন এবং সিমেট্রিক কী এনক্রিপশন )। হাইব্রিড এনক্রিপশন পাবলিক-কী এনক্রিপশনের সুবিধার সাথে সিমেট্রিক এনক্রিপশনের দক্ষতাকে একত্রিত করে। একটি বার্তা এনক্রিপ্ট করার জন্য, একটি নতুন সিমেট্রিক কী তৈরি করা হয় এবং প্লেইনটেক্সট ডেটা এনক্রিপ্ট করতে ব্যবহৃত হয়, যখন প্রাপকের পাবলিক কী শুধুমাত্র সিমেট্রিক কী এনক্রিপ্ট করতে ব্যবহৃত হয়। চূড়ান্ত সাইফারটেক্সট সিমেট্রিক সাইফারটেক্সট এবং এনক্রিপ্ট করা সিমেট্রিক কী নিয়ে গঠিত। হাইব্রিড এনক্রিপশন দেখুন।
- বার্তা প্রমাণীকরণ কোড (MAC) : ডেটার সত্যতা এবং অখণ্ডতা নিশ্চিত করার জন্য একটি সিমেট্রিক ( সিমেট্রিক কী এনক্রিপশন দেখুন) আদিম। বার্তা প্রমাণীকরণ কোড (MAC) দেখুন।
- স্ট্রিমিং AEAD : স্ট্রিমিং ডেটার জন্য প্রমাণীকৃত এনক্রিপশন প্রদানকারী একটি আদিম; উপযোগী যখন এনক্রিপ্ট করা ডেটা একক ধাপে প্রক্রিয়াকরণের জন্য খুব বড় হয়। স্ট্রিমিং AEAD দেখুন।
সামঞ্জস্যপূর্ণ তথ্যের জন্য ভাষা দ্বারা সমর্থিত আদিম দেখুন।
আরও তথ্যের জন্য, আদিম নকশা দেখুন।
মূল প্রকার
একটি কী প্রকার একটি নির্দিষ্ট আদিম প্রয়োগ করে। নিরাপত্তা, রানটাইম এবং স্থানের জন্য আপনার প্রয়োজনীয়তার উপর নির্ভর করে বেছে নেওয়ার জন্য বেশিরভাগ প্রাইমিটিভের বেশ কয়েকটি মূল প্রকার রয়েছে। উদাহরণস্বরূপ, AES128_GCM হল একটি AEAD যা বেশিরভাগ প্রয়োজনের জন্য দ্রুত এবং কার্যকর। ভাষা দ্বারা সমর্থিত কী প্রকারগুলিতে আরও দেখুন।
কীসেট এবং কীসেট হ্যান্ডলগুলি
টিঙ্ক কীগুলি পরিচালনার জন্য কীসেট ব্যবহার করে। একটি কীসেট মূলত কীগুলির একটি সেট যা কী ঘূর্ণন সহজতর করে। একটি কীসেটের উল্লেখযোগ্য বৈশিষ্ট্য হল:
- একটি কীসেটের প্রতিটি কী একটি অনন্য আইডি থাকে, যা একটি কীসেটের মধ্যে অনন্য। এই আইডিটি সাধারণত প্রতিটি উত্পাদিত সাইফারটেক্সট, স্বাক্ষর বা ট্যাগের সাথে একটি উপসর্গ হিসাবে যোগ করা হয় কোন কী ব্যবহার করা হয়েছে তা নির্দেশ করতে (আরও তথ্যের জন্য কীভাবে টিঙ্ক ট্যাগ সাইফারটেক্সটগুলি দেখুন)।
- একটি কীসেটে একবারে শুধুমাত্র একটি কী প্রাথমিক । একটি কীসেটের একটি প্রাথমিক কী এই মুহূর্তে "ব্যবহারের মধ্যে" কী।
- একটি কীসেটের সমস্ত কী অবশ্যই একই আদিম (যেমন AEAD) এর বাস্তবায়ন হতে হবে, তবে বিভিন্ন কী প্রকার থাকতে পারে (উদাহরণস্বরূপ, একটি AES-GCM এবং XCHACHA20-POLY1305 কী)।
প্রতিটি টিঙ্ক বাস্তবায়ন কীসেট তৈরি বা সম্পাদনা করার জন্য API প্রদান করে। যাইহোক, আমরা Tinkey আমাদের CLI টুল ব্যবহার করার পরামর্শ দিই।
ব্যবহারকারীরা কীসেট হ্যান্ডলগুলি ব্যবহার করে একটি কীসেটের মাধ্যমে কাজ করে। একটি কীসেট হ্যান্ডেল প্রকৃত সংবেদনশীল কী উপাদানের এক্সপোজারকে সীমাবদ্ধ করে। এটি একটি কীসেটকে বিমূর্ত করে যা ব্যবহারকারীদের একটি আদিম প্রাপ্ত করার অনুমতি দেয় যা সমগ্র কীসেটটিকে "মোড়ানো" করে। উদাহরণস্বরূপ, আপনি N
কী সহ একটি কীসেটের আদিম AEAD পেতে পারেন; প্রাপ্ত আদিম সহ এনক্রিপশন এবং ডিক্রিপশন তারপর কীসেটে প্রাথমিক কী ব্যবহার করে।
আরও তথ্যের জন্য, কীসেট ডিজাইন দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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 utilizes primitives as fundamental cryptographic building blocks for secure data operations, covering encryption, signatures, and message authentication.\u003c/p\u003e\n"],["\u003cp\u003eKeysets in Tink efficiently manage multiple keys for a single purpose, enabling features like key rotation and supporting various key types within a set.\u003c/p\u003e\n"],["\u003cp\u003eKeyset handles provide a secure abstraction layer, allowing users to interact with keys and perform cryptographic operations without directly exposing sensitive key material.\u003c/p\u003e\n"],["\u003cp\u003eTink offers a diverse selection of primitives and key types, accommodating varying security, performance, and storage requirements, with options like AEAD, digital signatures, and hybrid encryption.\u003c/p\u003e\n"]]],["Tink employs cryptographic building blocks called *primitives*, which define algorithms and key types. These include AEAD, Deterministic encryption, Digital signature, Hybrid encryption, MAC, and Streaming AEAD. *Key types* implement primitives, offering choices based on security and performance. *Keysets*, a set of keys with unique IDs, manage key rotation. *Keyset handles* abstract keysets, providing access to a primitive that operates over the entire keyset, including encryption/decryption with the primary key.\n"],null,["# Understand Key Concepts in Tink\n\nWhen you start working with Tink for the first time, there are some key concepts\nyou should understand before you begin your journey; these are described in the\nfollowing sections.\n\nPrimitives\n----------\n\nTink uses *primitives* as cryptographic building blocks that manage an\nunderlying algorithm so users can perform cryptographic tasks safely. A\nprimitive defines the details of a cryptographic algorithm and the key type.\n\nPrimitives supported by Tink:\n\n- **Authenticated Encryption with Associated Data (AEAD)** : The most common primitive for data encryption; suitable for most encryption needs. AEAD provides plaintext confidentiality, and allows verification of its integrity and authenticity. See [Authenticated Encryption with Associated Data\n (AEAD)](/tink/aead).\n- **Deterministic encryption:** A primitive that always produces the same ciphertext for a given plaintext and key. This can be risky, because an attacker only needs to find out which ciphertext corresponds to a given plaintext input to identify it. See [Deterministic\n AEAD](/tink/deterministic-aead).\n- **Digital signature** : An asymmetric (see *Asymmetric key encryption* ) primitive for confirming the authenticity and integrity of signed data. See [Digital signature](/tink/digital-signature).\n- **Hybrid encryption** : A primitive that combines asymmetric key encryption and symmetric key encryption (see *Asymmetric key encryption* and *Symmetric\n key encryption* ). Hybrid encryption combines the efficiency of symmetric encryption with the convenience of public-key encryption. To encrypt a message, a fresh symmetric key is generated and used to encrypt the plaintext data, while the recipient's public key is used to encrypt the symmetric key only. The final ciphertext consists of the symmetric ciphertext and the encrypted symmetric key. See [Hybrid\n encryption](/tink/hybrid).\n- **Message Authentication Code (MAC)** : A symmetric (see *Symmetric key\n encryption* ) primitive for confirming the authenticity and integrity of data. See [Message Authentication Code (MAC)](/tink/mac).\n- **Streaming AEAD** : A primitive providing authenticated encryption for streaming data; useful when the data to be encrypted is too large to be processed in a single step. See [Streaming AEAD](/tink/streaming-aead).\n\nSee [Supported primitives by language](/tink/primitives-by-language) for\ncompatibility information.\n\nFor more info, see [primitive design](/tink/design/primitives_and_interfaces).\n\nKey types\n---------\n\nA *key type* implements a specific primitive. Most primitives have several key\ntypes to choose from depending on your requirements for security, runtime, and\nspace. For example, AES128_GCM is an [AEAD](/tink/aead) that is fast and\neffective for most needs. See more at [Supported key types by\nlanguage](/tink/supported-key-types).\n\nKeysets \\& keyset handles\n-------------------------\n\nTink uses *keysets* for managing keys. A keyset is essentially a set of keys\nthat facilitate key rotation. Noteworthy properties of a keyset are:\n\n- Each key in a keyset has a unique ID, which is unique within a keyset. This ID is usually added as a prefix to each produced ciphertext, signature or tag to indicate which key was used (see how Tink [tags\n ciphertexts](/tink/design/keysets#tagging_ciphertexts) for more info).\n- Only one key at a time in a keyset is *primary*. A primary key in a keyset is the key \"in use\" at the moment.\n- All the keys in a keyset *must* be implementations of the same primitive (such as AEAD), but can have different key types (for example, an AES-GCM and XCHACHA20-POLY1305 key).\n\nEach Tink implementation provides APIs to create or edit keysets. However, we\nrecommend using [Tinkey](/tink/tinkey-overview) our CLI tool.\n\nUsers operate over a keyset using *keyset handles* . A keyset handle limits the\nexposure of the actual sensitive key material. It also abstracts a keyset\nallowing users to obtain a primitive that \"wraps\" the entire keyset. For\nexample, you can get an AEAD primitive of a keyset with `N` keys; encryption and\ndecryption with the obtained primitive then uses the primary key in the keyset.\n\nFor more info, see [keyset design](/tink/design/keysets)."]]