تتعامل واجهات برمجة التطبيقات Tink مع البرامج الثنائية الكبيرة العشوائية كمدخلات. هذا يعني أنك إذا كنت تريد
تشفير البيانات المنظَّمة، مثل
الموارد الاحتياطية للبروتوكول، يجب
ترميز البيانات أولاً.
تشفير نموذج أوّلي
للتشفير:
تسلسل النموذج الأولي إلى صفيفة بايت.
تشفير وحدات البايت المتسلسلة، ثم تخزين النص المُشفر الناتج أو إرساله.
الاستخدام:
تاريخ التعديل الأخير: 2024-10-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-10-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Tink APIs accept arbitrary binary data as input, requiring serialization of structured data like Protocol Buffers before encryption."],["Tink provides various encryption methods like AEAD, hybrid encryption, and deterministic AEAD to secure serialized data."],["Tink supports data integrity through digital signatures and MACs, but verification doesn't guarantee data formatting."],["Protecting multiple data items involves serialization, preferably using Protocol Buffers or length-prefixed concatenation, followed by encryption or authentication."]]],["Tink API handles binary blobs, requiring structured data like protocol buffers to be encoded first. To encrypt a protobuf, serialize it to bytes, then encrypt using AEAD, hybrid, or deterministic AEAD methods. Decryption involves decrypting the ciphertext and deserializing the protobuf. To protect from tampering, serialize, then sign or authenticate using digital signature or MAC, storing the signature with the data, verifying the signature before deserializing. Protecting multiple items requires serialization via a protobuf or a length-prefixed method, followed by encryption or authentication.\n"]]