A modern, interactive web application that transforms your notes into algorithmic puzzles using position-based encryption. Your notes are encrypted by position and become visible only when you solve them through proximity-based interaction.
- Each character is shifted by its position in the message.
- 1st letter = +1 shift, 2nd = +2 shift, creating unique encryption per message
- Reversed character order for additional obfuscation
- Right-to-left display with vertical flip transformation.
- Hover-based unlock: Get close to the encrypted text to reveal it
- Proximity detection: Real-time distance calculation for smooth reveal
- Visual feedback: Animated transitions with blur effects
- Dual view: See both encrypted and decrypted states side by side
- Auto-save: Notes automatically save to browser localStorage
- Export/Import: Save notes as JSON files with metadata
- Statistics: Real-time character count, word count, and encryption status
- Persistent Storage: Notes survive page refreshes
Ctrl/Cmd + K- Toggle lock/unlockCtrl/Cmd + Shift + C- Copy encrypted textCtrl/Cmd + Shift + V- Paste and decrypt encrypted textEsc- Re-lock the message
- Beautiful gradient backgrounds with animated effects
- Smooth transitions and animations
- Responsive design for all screen sizes
- Dark theme optimized for focus
- Glassmorphism effects with backdrop blur
- Toast notifications for user feedback
- Interactive statistics panel
- Node.js 18+ and npm/yarn/pnpm
- Clone the repository:
git clone <your-repo-url>
cd cognitive-lock-notes- Install dependencies:
npm install
# or
yarn install
# or
pnpm install- Start the development server:
npm run dev
# or
yarn dev
# or
pnpm dev- Open your browser and navigate to
http://localhost:5173
npm run build
# or
yarn build
# or
pnpm buildThe production build will be in the dist directory.
npm run preview
# or
yarn preview
# or
pnpm preview- Character Reversal: The input text is reversed character by character
- Position-Based Caesar Cipher: Each alphabetic character is shifted by its position index
- Position 1: +1 shift
- Position 2: +2 shift
- Position 3: +3 shift
- ...and so on
- Visual Transformation:
- Right-to-left (RTL) text direction
- Vertical flip (scaleY(-1))
- Blur effect when locked
- Proximity Detection: Mouse position is tracked relative to the encrypted text container
- Distance Calculation: Euclidean distance determines unlock strength
- Gradual Reveal: As proximity increases, blur decreases and text becomes readable
- Full Unlock: When proximity threshold is met, text fully decrypts with animation
- React 18.3.1 - UI library
- TypeScript 5.5.3 - Type safety
- Vite 5.4.2 - Build tool and dev server
- Tailwind CSS 3.4.1 - Styling
- Lucide React - Icon library
- PostCSS - CSS processing
project/
βββ src/
β βββ components/
β β βββ Hero.tsx # Landing section
β β βββ InteractiveDemo.tsx # Main encryption/decryption demo
β β βββ ConceptShowcase.tsx # Feature explanations
β β βββ Footer.tsx # Footer component
β βββ App.tsx # Main app component
β βββ main.tsx # Entry point
β βββ index.css # Global styles
βββ index.html # HTML template
βββ package.json # Dependencies
βββ vite.config.ts # Vite configuration
βββ tailwind.config.js # Tailwind configuration
βββ tsconfig.json # TypeScript configuration
- Personal Note-Taking: Keep your notes visually private
- Brain Training: Exercise your cognitive skills with encryption puzzles
- Creative Projects: Add an interactive encryption element to your apps
- Educational Tool: Learn about position-based ciphers and encryption concepts
- Fun & Games: Challenge friends to decrypt your messages
This is a visual obfuscation tool designed for fun and creativity, not cryptographic security. The encryption is:
- Not cryptographically secure - It's a simple positional cipher
- For entertainment purposes - Perfect for brain-teasing experiences
- Easily reversible - Anyone who understands the algorithm can decrypt
For real security needs, use proper cryptographic libraries and methods.
Edit tailwind.config.js to customize the color scheme:
theme: {
extend: {
colors: {
'primary': '#06b6d4', // cyan
'secondary': '#3b82f6', // blue
}
}
}Modify the transformText and reverseTransformText functions in InteractiveDemo.tsx to change the encryption algorithm.
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
- Improve documentation
MIT License - feel free to use this project for personal or commercial purposes.
- Built with Vite
- Icons by Lucide
- Styling with Tailwind CSS
- Build the project:
npm run build - The
distfolder contains the production-ready files - Upload the
distfolder contents to your hosting provider
For questions or feedback, please open an issue on GitHub.
If you find this project useful, please consider giving it a star β!
Made with β€οΈ for creative note-taking and cognitive challenges