암호문을 컨텍스트에 결합하고 싶습니다.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
최신 암호화 모드는 인증되지만 암호화되지 않은 연결된 데이터를 지원합니다. 이를 사용하여 암호문을 특정 컨텍스트에 바인딩할 수 있습니다.
암호문을 연결된 데이터에 바인딩하는 예는 다음과 같습니다.
데이터베이스 셀을 하나씩 (또는 열을 하나씩) 암호화합니다. 이렇게 하면 셀의 암호문이 해당 셀에서만 유효합니다. 이렇게 하면 공격자가 암호문을 한 셀에서 다른 셀로 이동할 수 없습니다. 이 예에서 암호문은 지정된 데이터베이스 셀의 column_id
및 row_id
에 바인딩되어야 합니다.
여러 클라이언트에 암호문을 저장하면 클라이언트 A가 클라이언트 B의 암호문을 복호화에 제공하는 경우 오작동을 감지할 수 있습니다. 여기서 암호문은 클라이언트 이름에 바인딩되어야 합니다.
Tink에는 암호문을 컨텍스트에 바인딩하는 몇 가지 옵션이 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-04(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-03-04(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."]]],["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"]]