暗号テキストをコンテキストにバインドしたいと考えています。
最新の暗号化モードでは、認証されていても暗号化されていない関連データがサポートされています。これを利用して、暗号テキストを特定のコンテキストにバインドできます。
暗号テキストを関連データにバインドする例を以下に示します。
データベースをセルごと(または列ごと)に暗号化する。これにより、セルの暗号テキストはその特定のセルでのみ有効になります。これにより、攻撃者は暗号テキストをあるセルから別のセルに移動できません。この例では、暗号テキストは指定されたデータベース セルの column_id
と row_id
にバインドされている必要があります。
暗号テキストを別のクライアントに保存すると、クライアント A がクライアント B の暗号テキストを復号用に提供している場合に、誤動作を検出できます。ここでは、暗号テキストはクライアントの名前にバインドする必要があります。
Tink には、暗号テキストをコンテキストにバインドするためのオプションがいくつかあります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-07-10 UTC。
[null,null,["最終更新日 2023-07-10 UTC。"],[[["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."]]],[]]