{"body":"","html":"<h4>TL;DR</h4><h6>Declare:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx\">const { login } = useTideCloak();\n</code></pre></div></div><h6>Add this:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx\">&lt;p&gt;&lt;button onClick={login}&gt;Login&lt;/button&gt;&lt;/p&gt;\n</code></pre></div></div><p>&nbsp;</p><p>That's it. No password storage, no hashing logic.</p><h4>Some context</h4><p>Traditional authentication knows dangerously too much. Its sole job is to determine whether users are who they claim to be, and nothing more. Yet today's systems must both know <strong>how to challenge users</strong> (password/biometric) and <strong>decide</strong> if they're valid. Whether you hash and salt passwords locally or use OAuth via a provider like Okta or Facebook, <em>someone</em> still holds secrets. When that someone is compromised, because you trusted them implicitly, you absorb the fallout.</p><p>It feels unavoidable. But what if authentication could verify a user <strong>without sending or storing secrets anywhere</strong>, and without trusting any single party to act as the authority? That's what we're building with TideCloak.</p><h5>The problem with current approaches</h5><ul><li data-list-item-id=\"ec6e3649e6b014f51c9883fc6cef433d1\"><strong>Password hashes are targets</strong>. Modern GPU clusters can test billions of combinations per second; offline attacks thrive on stolen hashes.</li><li data-list-item-id=\"eff601289d26c485d94579530fd1479d7\"><strong>Social login shifts trust</strong>. You're now betting on the <a href=\"https://tide.org/blog/god-mode-vulnerability-microsoft-authorityless-security\" data-cke-saved-href=\"https://tide.org/blog/god-mode-vulnerability-microsoft-authorityless-security\" rel=\"noopener noreferrer\" target=\"_blank\">provider's security</a> posture. Credentials (or their derivatives) still exist somewhere and can be attacked offline.</li></ul><h4>How it works</h4><p>Instead of storing credentials, TideCloak converts each credential into a <strong>zero-knowledge proof of a challenge</strong> that only the rightful holder can solve, then shards that proof across a network of independent nodes. No single node holds enough to reconstruct any meaningful proof, or to act as the sole authority to validate it. During login, the user engages the network to obtain a short-lived proof. The user's credential becomes effectively <strong>ineffable</strong> - beyond the ability to be expressed anywhere, by anyone.</p><blockquote><h5>INEFFABLE /ɪnˈɛfəbəl/ (adj) - too great to be expressed.</h5></blockquote><p>&nbsp;</p><p><a href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15u35s0bj63o2am45b44.jpg\" data-cke-saved-href=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15u35s0bj63o2am45b44.jpg\"><img src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15u35s0bj63o2am45b44.jpg\" alt=\"Zero-knowledge Authentication with TideCloak\" width=\"552\" height=\"482\" loading=\"lazy\" data-cke-saved-src=\"https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F15u35s0bj63o2am45b44.jpg\"></a></p><h5>Sequence (at a glance):</h5><ol><li data-list-item-id=\"e0ebed9a6ff983b9bd86b3617e9f9a404\">The user clicks <strong>Login</strong>, launching a login screen with a secret session bound to the browser.</li><li data-list-item-id=\"e8a8f5396d1bdf0e1ae8895c56c7fb4a1\">The user enters their <strong>Username</strong> and <strong>Password</strong>, performing a zero-knowledge authentication using <a href=\"https://link.springer.com/chapter/10.1007/978-3-031-41181-6_19\" data-cke-saved-href=\"https://link.springer.com/chapter/10.1007/978-3-031-41181-6_19\" rel=\"noopener noreferrer\" target=\"_blank\">Tide's PRISM protocol</a>, against the network.</li><li data-list-item-id=\"eb6db573f5145bb170e67755528646929\">A correctly entered credentials will manifest a cryptographic proof from the network.</li><li data-list-item-id=\"ed40749c1694e140aa7c70a2ed3da8c40\">Using that proof, TideCloak sends your app an OAuth2 Access Token (JWT) bound to the secret browser session.</li></ol><h5>Unique properties and benefits:</h5><ul><li data-list-item-id=\"e313f1eadad9b617a7e99d1118f96c6e3\"><strong>Best of both worlds</strong>: Familiar, frictionless UX, but passkey level security.</li><li data-list-item-id=\"ed5b4d341dc9a43f1c2e6b666aa448e69\"><strong>User privacy and identity ownership</strong>: Each user receives a deterministic, app-scoped, anonymized identity (untraceable and unlinkable across apps). Their master credentials are trusted to no one.</li><li data-list-item-id=\"ec321d75955b85acf068ed9fb68a0ce2b\"><strong>Nothing to steal</strong>: no password database, no hashes, no secrets at rest - Rendering offline attacks (e.g. Rainbow) infeasible.</li><li data-list-item-id=\"e157e277dde70ed7e38f2bf6508e2d70d\"><strong>Provable integrity</strong>: network-level and browser-level verification ensure tamper resistance and trust.</li><li data-list-item-id=\"efb4a2106fd77ad60ad03b61ff95efb9c\">Any MITM tampering causes authentication to fail.</li><li data-list-item-id=\"e70471a2cba229dd6c0448611804197f3\">Resilient against token hijacking. The JWT is unusable outside its originating browser.</li></ul><h4>And the implementation looks like this</h4><h6>Create a React app using Vite</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-bash\">npm create vite@latest tidecloak-react -- --template react-ts\ncd tidecloak-react\nnpm install @tidecloak/react\n</code></pre></div></div><h5>Get TideCloak running</h5><h6>Run a local test instance with Docker:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-bash\">sudo docker run --name tidecloakdev \\\n  -d \\\n  -v .:/opt/keycloak/data/h2 \\\n  -p 8080:8080 \\\n  -e KC_BOOTSTRAP_ADMIN_USERNAME=admin \\\n  -e KC_BOOTSTRAP_ADMIN_PASSWORD=change-me-now \\\n  tideorg/tidecloak-dev:latest\n</code></pre></div></div><p><em>Tip: Ports 8080 (server) and 5173 (Vite) must be free.</em></p><h6>Activate your TideCloak instance</h6><h6>Tide offers a free developer license for up to 100 users.</h6><ol><li data-list-item-id=\"ec3ba9aa72dde7dff6ca9571c5f4e13a1\">Open: <a href=\"http://localhost:8080/admin/master/console/#/myrealm/identity-providers/tide/tide/settings\" data-cke-saved-href=\"http://localhost:8080/admin/master/console/#/myrealm/identity-providers/tide/tide/settings\" rel=\"noopener noreferrer\" target=\"_blank\">http://localhost:8080/admin/master/console/#/myrealm/identity-providers/tide/tide/settings</a></li><li data-list-item-id=\"e49435af7876655d9037d65ddf168322a\">Sign in (Username: admin, Password: change-me-now, unless changed). You'll land on: myrealm realm → Identity Providers → tide IdP → Settings screen.</li><li data-list-item-id=\"eb8e7381149b09ad102ad25437f4f4a65\">Click Manage License → Request License.</li><li data-list-item-id=\"e793902f6a3040f2960f1217002391d9c\">Complete the checkout with a contact email.</li></ol><p><em>Within a few seconds, your TideCloak host should be licensed and activated.</em></p><h6>Export your TideCloak adapter</h6><ol><li data-list-item-id=\"eb094f9d29122e3d7bb1bcfbc6c617015\">Go to <a href=\"http://localhost:8080/admin/master/console/#/myrealm/clients\" data-cke-saved-href=\"http://localhost:8080/admin/master/console/#/myrealm/clients\">Clients</a> → mytest</li><li data-list-item-id=\"ed36a6d8c6047bdbfabce534447fbee2c\">Set Valid redirect URIs to <a href=\"http://localhost:5173/*\" data-cke-saved-href=\"http://localhost:5173/*\" rel=\"noopener noreferrer\" target=\"_blank\">http://localhost:5173/*</a></li><li data-list-item-id=\"eac5d37978865829a6f649057651a07d7\">Set Web origins to <a href=\"http://localhost:5173/\" data-cke-saved-href=\"http://localhost:5173/\" rel=\"noopener noreferrer\" target=\"_blank\">http://localhost:5173</a></li><li data-list-item-id=\"e114ac8634a9e1fe85288685a88bd7995\">In <a href=\"http://localhost:8080/admin/master/console/#/myrealm/clients\" data-cke-saved-href=\"http://localhost:8080/admin/master/console/#/myrealm/clients\">Clients</a> menu → mytest client ID → Action dropdown → Download adaptor configs option (keep it as keycloak-oidc-keycloak-json format)</li><li data-list-item-id=\"e32a65291af9f720b9bec0a5348ecbcdc\">Download as tidecloak.json in your project root</li></ol><h5>Edit src/main.tsx</h5><h6>Add imports:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx language-bash\">import { TideCloakContextProvider, useTideCloak, Authenticated, Unauthenticated } from '@tidecloak/react'\nimport tidecloakConfig from \"../tidecloak.json\"\n</code></pre></div></div><h6>Pre-authentication view:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx\">function Welcome() {\n  const { login } = useTideCloak();\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;Hello!&lt;/h1&gt;\n      &lt;p&gt;Please authenticate yourself!&lt;/p&gt;\n      &lt;p&gt;&lt;button onClick={login}&gt;Login&lt;/button&gt;&lt;/p&gt;\n    &lt;/div&gt;\n  );\n}\n</code></pre></div></div><h6>Post-authentication view:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx\">function LoggedIn() {\n  const { logout } = useTideCloak();\n  return (\n    &lt;div&gt;\n      &lt;p&gt;You're signed in!&lt;/p&gt;\n      &lt;button onClick={logout}&gt;Logout&lt;/button&gt;\n    &lt;/div&gt;\n  );\n}\n</code></pre></div></div><h6>Mount the app:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-jsx\">createRoot(document.getElementById('root')!).render(\n&lt;StrictMode&gt;\n  &lt;TideCloakContextProvider config={tidecloakConfig}&gt;\n    &lt;Authenticated&gt;\n      &lt;LoggedIn /&gt;\n    &lt;/Authenticated&gt;\n    &lt;Unauthenticated&gt;\n      &lt;Welcome /&gt;\n    &lt;/Unauthenticated&gt;\n  &lt;/TideCloakContextProvider&gt;\n&lt;/StrictMode&gt;,\n)\n</code></pre></div></div><h6>Build and run:</h6><div class=\"code-snippet-container\"><div class=\"snippet-with-button\"><pre><code class=\"language-bash\">npm install\nnpm run dev\n</code></pre></div></div><h5>Technical properties</h5><p>TideCloak uses ineffable cryptography where authentication requires collaboration from multiple nodes, and no single node - or any subset below a threshold - can reconstruct credentials or proofs. This is a novel form of secure multi-party computation, validated through published research with RMIT and Deakin universities.</p><h6>Key properties:</h6><ul><li data-list-item-id=\"e4926ce737b40ce2a49fc88e2b0d7ffa7\"><strong>Threshold</strong>: authentication succeeds if any <strong>14 of 20</strong> nodes respond.</li><li data-list-item-id=\"e5d9151e9a58af8e58c2fcda81f194fe0\"><strong>Resilience</strong>: compromising up to <strong>14 nodes reveals nothing</strong>.</li><li data-list-item-id=\"eaae65a8fac4e7a1c5d02e0c02e79a58e\"><strong>Unlinkability</strong>: each service sees users as unique, unlinkable identifiers (app-scoped).</li><li data-list-item-id=\"e25c0732770611f8016791f8da2742fed\"><strong>Performance</strong>: on par with, or better than, major cloud IdPs; browser-bound proofs add negligible overhead.</li></ul><h5>Threat model and limitations</h5><h6>Protects against:</h6><ul><li data-list-item-id=\"ec79e5616301fbf09de4b4f7af3eb1fa2\">Database breaches revealing credentials/hashes</li><li data-list-item-id=\"e570a5de2da77e06ec418d6173ee7e263\">Insider access to user password material</li><li data-list-item-id=\"eef2fd5951f2ce3b63b0b5bdca1051a65\">Token replay in MITM scenarios (browser-bound, DPoP-style proof)</li><li data-list-item-id=\"e0b785424d297cea9cbfed9b6346cb683\">OAuth/IdP provider compromise leaking user credentials</li></ul><h6>Doesn't protect against:</h6><ul><li data-list-item-id=\"e865011b6b813280990880c672458c7f0\">Keyloggers/malware on user devices</li><li data-list-item-id=\"eb0c1f4844faae6473dc70b135e74dc71\">Very weak passwords</li><li data-list-item-id=\"e931bf55f8df14f7810e1da869af34105\">Majority network compromise above threshold (≥14/20)</li></ul><h6>Current limitations:</h6><ul><li data-list-item-id=\"e8a399018e7c0ec4b08c912054da620fb\">Internet connectivity required for authentication</li></ul><h4>Integration simplicity</h4><p>The SDK handles the cryptography. Your app calls useTideCloak() and receives a session token. Standard JWT verification works normally.<br>For existing systems, run traditional auth and zero-knowledge auth on TideCloak in parallel during migration, moving users over as they log in.</p><h4>Open questions we're working on</h4><p>We're in alpha and looking for feedback on:</p><ul><li data-list-item-id=\"e148e7f3f03d2a0ab0ff7300899707da5\">Developer experience</li><li data-list-item-id=\"eb51267c1ac663f3250f7b87e9e765e70\">Clarity of the approach</li><li data-list-item-id=\"e1291d075905bd1320e5a18a6acb2225c\">Bugs and feature requests</li></ul><p>TideCloak's code is open source - we welcome security reviews and integration feedback.</p><h4>Dive into the code</h4><ul><li data-list-item-id=\"e9a4691a2d5904a9c4c117ac674cd715e\">One-Click Demo: <a href=\"https://codespace.new/tide-foundation/tidecloak-playground?quickstart=1\" data-cke-saved-href=\"https://codespace.new/tide-foundation/tidecloak-playground?quickstart=1\" rel=\"noopener noreferrer\" target=\"_blank\">https://codespace.new/tide-foundation/tidecloak-playground?quickstart=1</a></li><li data-list-item-id=\"e6caf9e57ed1284a39249023cee19a724\">Example React project: <a href=\"https://github.com/tide-foundation/tidecloak-gettingstarted\" data-cke-saved-href=\"https://github.com/tide-foundation/tidecloak-gettingstarted\" rel=\"noopener noreferrer\" target=\"_blank\">https://github.com/tide-foundation/tidecloak-gettingstarted</a></li><li data-list-item-id=\"ea254e07c378703b35cd75a400c0f1a8b\">SDK: <a href=\"https://docs.tidecloak.com/docs/Languages/React/tidecloak-react-tutorial-quickstart\" data-cke-saved-href=\"https://docs.tidecloak.com/docs/Languages/React/tidecloak-react-tutorial-quickstart\" rel=\"noopener noreferrer\" target=\"_blank\">https://docs.tidecloak.com/</a></li><li data-list-item-id=\"ee1d9fde2a4311dea27139a1fd2767209\">Join the dev community: <a href=\"http://tide.org/discord\" data-cke-saved-href=\"http://tide.org/discord\" rel=\"noopener noreferrer\" target=\"_blank\">https://discord.gg/XBMd9ny2q5</a></li></ul><p>We're building this because credentials shouldn't be honeypots, individuals should own their identities, and organizations shouldn't have to carry the liability of securing secrets.</p>"}