This project is not covered by Drupal’s security advisory policy.
Secure Share lets site administrators generate one-time, zero-knowledge encrypted links to safely share passwords, API keys, and sensitive text without requiring recipients to have a Drupal account.
Features
Sharing credentials over email, Slack, or chat leaves permanent plaintext copies behind. Secure Share solves this by encrypting your sensitive information directly in your browser before it ever reaches the server, generating a self-destructing link you can send to anyone.
- Zero-knowledge client-side encryption: Secrets are encrypted in your browser using the Web Crypto API (
AES-256-GCM). The decryption key stays in the URL fragment (#), which browsers never transmit to the server—meaning Drupal never sees the plaintext or the key. - Burn-after-reading & view limits: Set secrets to self-destruct immediately after 1 view, or configure a custom maximum view limit.
- Automatic expiration: Choose an expiration window (1 hour, 6 hours, 24 hours, 3 days, 7 days, or 30 days). Expired secrets are automatically purged on cron.
- Optional passphrase protection: Add an extra passphrase that combines with the URL key via
PBKDF2-SHA256(310,000 iterations) before decryption. - Bot-safe reveal: Link-preview bots (Slack, Microsoft Teams, Discord) only trigger a metadata check and cannot accidentally burn a secret; views are only consumed when the recipient clicks Reveal Secret.
- No recipient account required: External clients, contractors, or teammates can open the link and view the secret without logging into Drupal.
- Built-in rate limiting: API endpoints are protected by Drupal's Flood API and strict
no-storecache headers.
Post-Installation
- Install and enable the module as usual.
- Go to Administration > Configuration > System > Secure Share (
/admin/config/security/secure-share) to enter credentials or sensitive text, choose expiration/view limits, and click Generate Secure Link. - Click the Settings tab (
/admin/config/security/secure-share/settings) to customize default and maximum expiration times, view limits, maximum payload size, passphrase support, and hourly IP rate limits. - Optionally grant the Generate secure share links permission under Administration > People > Permissions to any non-administrator roles that should be allowed to create links.
Additional Requirements
- Drupal
^10.3 || ^11(no contributed module or external PHP/JS library dependencies). - HTTPS in production (required by modern browsers for the Web Crypto API).
Recommended modules/libraries
None required. Everything runs using Drupal core and native browser cryptography.
Similar projects
- One-Time Login Link and Login one time generate single-use links to log into a Drupal user account. Secure Share is for sharing arbitrary credentials, API keys, server access details, or confidential notes with anyone—without requiring a Drupal account.
Project information
- Project categories: Administration tools, Security
- Created by shamir.vs on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


