25 GUIDES

Keys and cryptography

Key lifecycles, signatures, encryption and application data.

Keys and cryptography2 min

Authenticated encryption for mobile data

Encrypted content can still be modified. AEAD combines confidentiality with integrity verification and associated-data binding.

Read the guide
Keys and cryptography1 min

Nonce discipline with AES-GCM

AES-GCM security depends on correct key and nonce use. Reusing a nonce under the same key can cause serious security failure.

Read the guide
Keys and cryptography1 min

When to consider ChaCha20-Poly1305

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

Read the guide
Keys and cryptography1 min

Nonce, IV and challenge: different requirements

These values are not interchangeable random strings. Requirements depend on the algorithm or protocol.

Read the guide
Keys and cryptography1 min

Cryptographically secure randomness on mobile

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

Read the guide
Keys and cryptography1 min

Context separation in HKDF key derivation

Deriving keys for different purposes requires domain separation. HKDF provides a defined construction for key derivation.

Read the guide
Keys and cryptography1 min

Choosing cost for password-based key derivation

User passwords have different entropy from random keys. Derivation needs an appropriate method and parameters that increase guessing cost.

Read the guide
Keys and cryptography1 min

HMAC, message integrity and shared secrets

HMAC verifies integrity between parties sharing a key. Every party with that key can also create valid tags.

Read the guide
Keys and cryptography1 min

Digital signatures versus encryption

A signature verifies approval by a key; encryption restricts reading. One does not imply the other.

Read the guide
Keys and cryptography1 min

What JWS and JWE provide in mobile protocols

JWS protects integrity and supports source authentication; JWE carries encrypted content. Dot-separated token fields are not necessarily confidential.

Read the guide
Keys and cryptography1 min

Envelope encryption for mobile data

Separating data-encryption keys from the keys protecting them can simplify lifecycle management. This is commonly called envelope encryption.

Read the guide
Keys and cryptography1 min

Key versions and older encrypted data

After rotation, the application must know which key opens existing data. Make version identity explicit in the format.

Read the guide
Keys and cryptography1 min

Recovery after mobile key invalidation

Device security or key-policy changes can make a key unavailable. Applications need a safe recovery route.

Read the guide
Keys and cryptography1 min

Reducing the lifetime of secrets in memory

Encrypted data may become plaintext when used. Unnecessary copies and long lifetimes broaden exposure.

Read the guide
Keys and cryptography1 min

What a file hash establishes

Cryptographic hashes help compare files. An untrusted expected hash does not independently establish legitimacy.

Read the guide
Keys and cryptography1 min

Constant-time APIs for secret comparisons

Comparison timing can reveal information about secret values. Suitable library APIs help reduce that exposure.

Read the guide
Keys and cryptography1 min

Questions to ask when buying white-box cryptography

White-box approaches target difficult environments where applications use keys locally. Evaluate claims against your application and threat model.

Read the guide
Keys and cryptography1 min

Developing iOS cryptography with CryptoKit

CryptoKit supplies cryptographic APIs on Apple platforms. API choice remains connected to storage and protocol design.

Read the guide
Keys and cryptography1 min

What Tink offers mobile projects

Tink aims to make cryptography easier to use safely. Confirm language and platform support in current documentation.

Read the guide
Keys and cryptography1 min

Using libsodium securely in mobile applications

libsodium offers high-level cryptographic options. Mobile integrations also depend on binding maintenance and native-library versions.

Read the guide
Keys and cryptography1 min

Local database encryption with SQLCipher

SQLCipher encrypts SQLite data. Key management is as important as the database solution itself.

Read the guide
Keys and cryptography1 min

Verification with cryptographic test vectors

Successfully decrypting your own output is not sufficient verification. Known valid and invalid vectors reveal implementation defects.

Read the guide
Keys and cryptography1 min

Cryptographic agility and data formats

Future algorithm or policy changes require prepared formats. Flexibility must not allow clients to choose arbitrary weak methods.

Read the guide
Keys and cryptography1 min

Responding to mobile key exposure

Compromise requires more than issuing a replacement. Determine what the old key could read or authorize.

Read the guide
Keys and cryptography1 min

KMS and HSM roles in mobile architectures

KMS and HSM services manage server keys. They do not automatically place every phone-held secret inside the same boundary.

Read the guide