أريد ربط النص المشفّر بسياقه.
تتوافق أوضاع التشفير الحديثة مع البيانات المرتبطة التي تتم مصادقتها ولكن
لا يتم تشفيرها. ويمكن استخدام ذلك لربط نص مشفَّر بسياق معيّن.
تشمل أمثلة ربط النص المشفَّر بالبيانات المرتبطة ما يلي:
تشفير قاعدة بيانات خلية تلو الأخرى (أو عمود تلو الآخر) يضمن ذلك أنّ ملف التشفير الخاص بالخلية صالح في تلك الخلية فقط. ويمنع ذلك
المهاجم من نقل النص المشفَّر من خلية إلى أخرى. في هذا
المثال، يجب ربط النص المشفَّر بالرمزَين column_id
وrow_id
لخلية قاعدة البيانات المحدّدة.
يتيح لك تخزين النصوص المشفَّرة في عملاء مختلفين رصد السلوك غير السليم إذا كان العميل "أ" يقدّم نص العميل "ب" المشفَّر لفك التشفير. في هذه الحالة، يجب أن يكون النص المشفَّر مرتبطًا باسم العميل.
تتوفّر في Tink عدة خيارات لربط النص المشفَّر بالسياق:
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-03-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-03-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Modern encryption techniques can authenticate additional data without encrypting it, ensuring data integrity and context."],["This \"associated data\" links ciphertext to its specific location or user, preventing unauthorized use or manipulation."],["Tink offers multiple encryption options, including AEAD, Streaming AEAD, Deterministic AEAD, and Hybrid Encryption, that support binding ciphertext to its context for enhanced security."],["Developers can utilize associated data to prevent attacks like ciphertext movement or unauthorized decryption by ensuring the ciphertext remains tied to its intended context."]]],["Encryption modes utilize associated data to authenticate but not encrypt, binding ciphertexts to specific contexts. This prevents ciphertext misuse. Examples include binding database cell data to `column_id` and `row_id` or binding data to a client's name. Tink offers this functionality through AEAD, Streaming AEAD, Deterministic AEAD with an associated data input and Hybrid encryption with a context info parameter. Decryption fails if the correct associated data is not provided.\n"]]