Security Suite Documentation
MockLock Security Suite Documentation
Overview
The MockLock Security Suite provides a set of powerful security tools designed for developers and end-users. The suite includes essential tools for password management, file encryption, secure data sharing, and temporary email services.
Features
The Security Suite consists of four main tools:
- Password Generator
- File Encryption
- One-Time Secret
- Temporary Email
Password Generator
Purpose
Generate strong, secure passwords customized to your specific requirements.
Features
- Adjustable password length (8-32 characters)
- Character type selection (uppercase, lowercase, numbers, special characters)
- Password strength indicator
- Copy to clipboard functionality
- Password randomization
- Visual strength meter
How to Use
- Adjust the password length using the slider
- Select which character types to include
- Click "Generate Password" to create a new password
- Use "Copy" to copy the password to clipboard
- Use "Randomize" to quickly change settings
Implementation Details
The password generator uses a cryptographically secure random number generation approach. It ensures at least one character from each selected type appears in the generated password, and the order is randomized before returning to ensure unpredictability.
"hljs-keyword">class="hljs-comment">// Character sets used "hljs-keyword">for generation
"hljs-keyword">const charset = {
uppercase: "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
lowercase: "abcdefghijklmnopqrstuvwxyz",
numbers: "0123456789",
special: "!@#$%^&*()_-+={}[]|:;<>,.?/~"
};
File Encryption
Purpose
Securely encrypt files with AES-GCM encryption before storing or sharing them. Decrypt encrypted files when needed.
Features
- End-to-end encryption
- AES-GCM encryption algorithm
- Password-based encryption
- Original file format preservation
- Toggle between encryption and decryption modes
- Local processing (files never leave your device)
How to Use
Encrypting Files:
- Select "Encrypt" mode
- Choose the file you want to encrypt
- Enter a strong password
- Click "Encrypt File"
- Download the encrypted file
Decrypting Files:
- Select "Decrypt" mode
- Upload the encrypted file
- Enter the password used for encryption
- Click "Decrypt File"
- Download the decrypted file
Security Notes
- The encryption runs entirely in your browser
- Files are never uploaded to any server
- AES-GCM provides both confidentiality and integrity
- Your password is never stored
- The encryption includes the original file type for proper decryption
One-Time Secret
Purpose
Share sensitive information (passwords, API keys, etc.) via a secure link that automatically expires after a single view.
Features
- Self-destructing links
- Password protection option
- Expiration options (5 minutes, 1 hour, 1 day, or 1 week)
- No sensitive data stored in plaintext
- Copy link to clipboard functionality
How to Use
- Enter the secret information you want to share
- Optionally add a password for additional security
- Select an expiration time
- Click "Create Secret Link"
- Share the generated link with the recipient
- The recipient views the secret and it's automatically destroyed
Security Notes
- Once a secret is viewed, it's permanently deleted
- All secrets are encrypted before storage
- If a password is set, the recipient must enter it to view the secret
- Expired secrets are automatically purged from the system
Temporary Email
Purpose
Create disposable email addresses to protect your primary email from spam and security risks when signing up for services.
Features
- Instantly generated disposable email addresses
- Real-time inbox viewing
- No registration required
- Email forwarding options
- Automatic expiration
How to Use
- Generate a random email address or customize your own
- Use this email when signing up for services
- View incoming messages in real-time
- Copy or forward important information
- Discard the email when finished
Security Notes
- Temporary emails should not be used for important accounts
- All emails are automatically deleted after expiration
- Do not share sensitive information through temporary emails
- The service is designed for testing and temporary use only
Best Practices
- Password Generator
- Always use the maximum length practical for your password
- Include all character types when possible
- Never reuse passwords across different services
- Consider storing passwords in a dedicated password manager
- File Encryption
- Use strong, unique passwords for your encrypted files
- Store the password securely (not in the same location as the encrypted file)
- Back up your files before encryption
- Remember that lost passwords cannot be recovered
- One-Time Secret
- Set passwords for especially sensitive information
- Use the shortest practical expiration time
- Communicate the password through a different channel than the link
- Confirm with recipients when they've viewed the secret
- Temporary Email
- Don't use for accounts you'll need long-term access to
- Check emails promptly before they expire
- Don't share personal information through temporary emails
- Consider using a dedicated email service for more permanent needs
Technical Implementation
The Security Suite is implemented using modern web technologies:
- Next.js React framework
- Client-side encryption using Web Crypto API
- LocalStorage for temporary data storage
- Responsive design for all devices
- Modern UI components
All security operations are performed client-side for maximum privacy and security. No sensitive data is transmitted to our servers unencrypted.