Skip to content

erabytse/cryptologin-tutorial

Repository files navigation

🔐 CryptoLogin Tutorial - DataVault Zero-Knowledge

CryptoLogin

A comprehensive tutorial on implementing CryptoLogin, a zero-knowledge authentication system with end-to-end encryption, in the age of AI.

🎯 What you’re going to build

A DataVault where your sensitive data is encrypted locally before being sent to the server. The server never sees the data in plain text. Even in the event of a complete database leak, your data remains mathematically unreadable.

Diagram architecture

🚀 Quick Start (5 minutes)

Step 1: Start the Authentication Server

# Install CryptoLogin
pip install cryptologin[server]

# Initialise the database (automatic creation of cryptologin_db)
cryptologin init

# Start the server (listens on http://localhost:8000 by default)
cryptologin run

✅ That’s it! Your zero-knowledge authentication server is up and running.

Step 2: Testing Basic Authentication

cd 02-client-basic-auth
npm install
node index.js

Step 3: Building the Encrypted DataVault

cd 03-datavault-encrypted
npm install
pip install fastapi uvicorn

# Terminal 1: Start the vault server
python vault_server.py

# Terminal 2: Launch the client
node client.js

demo-screenshot

📚 Complete Tutorial

👉 Read the full article on Dev.to/Medium (link to be added after publication)

🎥 Watch the YouTube video (link to be added after publication)(cooming soon...)

🔗 Official CryptoLogin Links

💻 GitHub : github.com/erabytse/CryptoLogin

🐍 PyPI : pypi.org/project/cryptologin/

📦 npm : npmjs.com/package/cryptologin-client

🌐 Demo : erabytse.github.io/cryptologin-website

🛡️ Zero-Knowledge Philosophy

In an age where AI can automate phishing and bypass traditional security measures, CryptoLogin is based on a radical principle:

Your master_secret NEVER leaves your device.

No passwords stored in a database. No email address to verify. Just you and a secret phrase of 32+ characters, which you keep on a piece of paper in your wallet.

📄 Licence

MIT Licence – Free to use, audit and contribute to.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages