Securely share passwords and sensitive information with one-time links
?s= in the URL# in the URLhttps://.../?s=7#abc123...
Note: The encryption key is embedded in the URL fragment (#). It is never sent to the server.
Important: If the link has already been opened or has expired, you will see an error message.
The One Pass It Chrome extension lets you create secrets directly from selected text on any web page.
chrome://extensions.#prefill=...) — it is never sent to any server.contextMenus permission.A Node.js CLI that creates one-time secret links using native crypto. Authenticate via the --cookie flag, a cached session, or an interactive browser prompt.
Save to your project folder and run with Node.js 18+.
Requires Node.js 18+. No external packages needed.
--cookie flag, ONEPASS_COOKIE env var, or the local cache (~/.onepass-cli/cookie)./api/create endpoint, and the one-time link is printed to stdout.~/.onepass-cli/cookie (file permissions 0600) and reused until it expires.
node cli/one-pass-cli.js --secret "MyP@ssw0rd"With description and custom expiry:
node cli/one-pass-cli.js --secret "pwd" --description "DB password" --expiry 48Pipe from stdin:
echo "SuperSecret" | node cli/one-pass-cli.jsProvide cookie directly:
node cli/one-pass-cli.js --cookie "eyJ..." --secret "pwd"Force SSO re-login:
node cli/one-pass-cli.js --loginCustom base URL (local dev):
node cli/one-pass-cli.js --secret "token" --url "http://localhost:8788" --email "user@roche.com"
| Flag | Short | Description | Default |
|---|---|---|---|
--secret |
-s |
Secret text (or pipe via stdin) | — |
--email |
-m |
Your Roche email (auto-detected from SSO) | — |
--description |
-d |
Optional label for recipient | — |
--expiry |
-e |
Link expiry (1–168 hours) | 24 |
--url |
-u |
One Pass base URL | Production URL |
--cookie |
-c |
CF_Authorization cookie value | — |
--login |
-l |
Force SSO re-login (refresh cached cookie) | — |
--help |
-h |
Show help text | — |
Email is auto-detected from your SSO session. Use --email to override. Must end with @roche.com, @businesspartner.roche.com, @gene.com, or @external.gene.com
CF_Authorization → double-click the Value → Ctrl+C to copy.--cookie "value" or set ONEPASS_COOKIE environment variable.