Quick Answer & Key Takeaways
KeepCloud never stores your Google, Microsoft, or Dropbox passwords. OAuth access and refresh tokens are encrypted at rest with AES-256-GCM authenticated encryption, pairing a 256-bit key held outside the database with a fresh random 12-byte nonce on every write — under strict DPDP Act 2023 & GDPR safeguards.
- Confidentiality + tamper detection: Galois/Counter Mode (GCM) attaches an authentication tag so any single-bit ciphertext alteration immediately fails decryption.
- Unique 12-byte random nonce: Generated via
os.urandom(12)on every encryption, so identical tokens never produce identical ciphertext. - Separated encryption key: The 256-bit
CRYPTO_KEYlives in server environment configuration, separate from the credential store.
When you connect Google Drive, OneDrive, or Dropbox to KeepCloud, the OAuth 2.0 flow returns a short-lived access token and a longer-lived refresh token. Because these tokens grant API access to your cloud drives, ROXLI engineered KeepCloud's credential layer around defense-in-depth cryptography.
What is AES-256-GCM and why GCM matters
AES-256 uses a 256-bit (32-byte) symmetric key. Adding Galois/Counter Mode (GCM) turns it into Authenticated Encryption with Associated Data (AEAD): it guarantees both confidentiality (nobody without the key can read the token) and integrity (any modification to the stored ciphertext invalidates the authentication tag and aborts decryption immediately).
AES-256-GCM does not just hide your credential — it rejects any ciphertext if even a single bit has been tampered with.
Unique 12-byte nonces and key separation
Every time KeepCloud encrypts a token — including automatic OAuth refresh cycles — it generates a fresh 12-byte cryptographically random nonce. Reconnecting the same Google Drive account twice yields completely different base64 payloads, preventing pattern correlation.
| Security Layer | Stored in Credential Store | Held Outside Database / Ephemeral |
|---|---|---|
| OAuth Tokens | Base64(12-byte nonce + AES-256-GCM ciphertext + auth tag) | Plaintext token (decrypted in memory only during an API call) |
| Encryption Key | Never stored in DB | 256-bit CRYPTO_KEY in isolated server environment |
| Provider Passwords | Never collected or stored | Handled strictly on Google, Microsoft, and Dropbox OAuth screens |
| Original File Bytes | Never stored during sync | Streamed on demand via authenticated proxy |
Regulatory & Google Limited Use compliance
All data flows operate over TLS 1.3 and adhere to India's Digital Personal Data Protection (DPDP) Act, 2023 (including 72-hour erasure and a dedicated Grievance Redressal Officer), GDPR, and the Google API Services User Data Policy (Limited Use). Review our Privacy Policy, Terms of Service, and Security Docs, or get started safely.

Frequently Asked Questions
What is AES-256-GCM and why does the GCM tag matter?
AES-256-GCM combines 256-bit AES encryption with Galois/Counter Mode integrity authentication. If a single bit of the stored ciphertext or nonce is altered, the GCM authentication tag fails verification and KeepCloud refuses to decrypt or use the record.
Why is a unique 12-byte nonce generated for every encryption?
In GCM mode, pairing the encryption key with a fresh random 12-byte nonce on every write guarantees that encrypting the same OAuth credential twice produces entirely different ciphertext while preserving cryptographic soundness.
Are encryption keys stored in the same database as my encrypted tokens?
No. KeepCloud separates the 256-bit encryption key into isolated server environment configuration outside the credential database, providing defense-in-depth if database records were ever exposed.



