Google Tink is a developer-friendly, multi-language cryptographic library that reduces common programming errors. Its Java implementation adds a safer layer over the low-level JCA and JCE APIs. section 4.3
Tink is useful when production cryptography must remain practical and harder to misuse:
- Use it instead of writing production AES-GCM code directly against low-level cryptography APIs. section 5.5.3
- Reuse the same library across Java, C++, Objective-C, Go, Python, and JavaScript implementations. section 4.3
- Treat JCA and JCE as APIs worth understanding, but recognize that they are easy to misconfigure or misuse. section 4.3
Hashing a file with Tink
A Java implementation can hash refunds.json with SHA3-256 through Tink’s message-digest integration and produce the same digest as direct JCA usage: 542b49a04073502046b0de5751d5f7a9afe7c1ff2d63524c0863233a53de0c14.
