Android and iOS

Cryptographically secure randomness on mobile

Key lifecycles, signatures, encryption and application data.

Keys and cryptography1 min readEditorial methods

Cryptographic values need unpredictability. Randomness used for animation or game logic may be unsuitable.

Evaluation approach

Use platform cryptographic APIs. Never ship fixed seeds introduced for testing keys, challenges or tokens.

Application example

Keep deterministic test providers separate and verify selection of the real secure provider in release builds.

Limits and considerations

Complicated-looking output does not establish cryptographic quality.

Can test values reach production?

Make deterministic providers explicit test dependencies. Check release artifacts for fixed keys and challenges; appearance is not evidence of secure randomness.

Checks and decisions

  • Use platform APIs
  • Separate test providers
  • Scan for fixed values

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.