Android and iOS

When to consider ChaCha20-Poly1305

Key lifecycles, signatures, encryption and application data.

Keys and cryptography1 min readEditorial methods

ChaCha20-Poly1305 is an authenticated-encryption option. Evaluate device performance, platform support and protocol requirements together.

Evaluation approach

Use mature high-level APIs instead of constructing your own encryption combination. Preserve key and nonce rules.

Application example

During an algorithm migration, define how old records are read and new records identified.

Limits and considerations

A popular algorithm cannot be substituted arbitrarily into every protocol.

Migrating older data

Changing the write path is insufficient. Provide controlled reading, verification and migration for old records. Do not silently try alternative algorithms on incorrectly labeled data.

Checks and decisions

  • Version the format
  • Test compatibility
  • Prevent nonce reuse

Sources

The primary references above provide the technical basis. Example workflows and evaluation suggestions are this publication’s explanations, not independent test results for a particular product.