אני רוצה לקשר את המידע להקשר שלו
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מצבי הצפנה מודרניים תומכים בנתונים משויכים, שמאומתים אבל לא מוצפנים. אפשר להשתמש בכך כדי לקשר טקסט מוצפן להקשר ספציפי.
דוגמאות לקישור של טקסט מוצפן לנתונים משויכים:
הצפנה של מסד נתונים תא אחר תא (או עמודה אחר עמודה). כך מובטח שהטקסט המוצפן של התא תקף רק בתא הספציפי הזה. כך תימנע מהתוקף אפשרות להעביר את הטקסט המוצפן מתא אחד לאחר. בדוגמה הזו, הטקסט המוצפן צריך להיות קשור ל-column_id
ול-row_id
של התא במסד הנתונים.
אחסון טקסטים מוצפנים בלקוחות שונים מאפשר לזהות התנהגות זדונית אם לקוח א' מספק טקסט מוצפן של לקוח ב' לצורך פענוח. כאן, הטקסט המוצפן צריך להיות קשור לשם הלקוח.
ב-Tink יש כמה אפשרויות לקישור מידע מוצפן להקשר שלו:
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eModern encryption techniques can authenticate additional data without encrypting it, ensuring data integrity and context.\u003c/p\u003e\n"],["\u003cp\u003eThis "associated data" links ciphertext to its specific location or user, preventing unauthorized use or manipulation.\u003c/p\u003e\n"],["\u003cp\u003eTink offers multiple encryption options, including AEAD, Streaming AEAD, Deterministic AEAD, and Hybrid Encryption, that support binding ciphertext to its context for enhanced security.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize associated data to prevent attacks like ciphertext movement or unauthorized decryption by ensuring the ciphertext remains tied to its intended context.\u003c/p\u003e\n"]]],["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"],null,["# I want to bind ciphertext to its context\n\nModern encryption modes support *associated data*, which is authenticated but\nnot encrypted. This can be used to bind a ciphertext to a specific context.\n\nExamples of binding ciphertext to associated data include:\n\n- Encrypting a database cell-by-cell (or column-by-column). This ensures the\n cell's ciphertext is only valid in that specific cell. This prevents the\n attacker from moving the ciphertext from one cell to another. In this\n example, the ciphertext should be bound to the `column_id` and `row_id` for\n the given database cell.\n\n- Storing ciphertexts in different clients lets you detect misbehavior if\n Client A provides Client B's ciphertext for decryption. Here, the ciphertext\n should be bound to the client's name.\n\nTink has several options for binding ciphertext to its context:\n\n- [AEAD](/tink/aead), [Streaming AEAD](/tink/streaming-aead), and [Deterministic\n AEAD](/tink/deterministic-aead) all accept an associated data input along with\n the plaintext. The decryption fails if the associated data is not provided\n with the ciphertext.\n\n- [Hybrid encryption](/tink/hybrid) provides the same feature using the [context\n info parameter](/tink/hybrid#context_info_parameter)."]]