Quick View lets you read and edit an encrypted file without ever leaving a permanent decrypted copy on your disk. Instead of unlocking the file in-place, Secure Crypt decrypts it to a system temp directory, hands it off to whatever application normally opens that file type, and then waits. When you’re done editing, a single click re-encrypts the file with a brand-new salt and nonce and erases the temporary copy — all without touching the originalDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Anzi001/Secure-Crypt/llms.txt
Use this file to discover all available pages before exploring further.
.scrypt archive’s location. This makes Quick View the ideal workflow for day-to-day access to sensitive documents, and it is the only way to open files that were locked with the Force Password (Mandatory Lock) flag.
How Quick View works
The full Quick View lifecycle proceeds as follows:-
Decrypt to temp. Secure Crypt reads the encrypted file, extracts the 1-byte flag, 16-byte salt, 12-byte nonce, and ciphertext, then decrypts using AES-256-GCM. The plaintext is written to a system-managed temporary directory (
tempfile.mkdtemp()). For folders, the decrypted bytes are first unpacked from a ZIP archive into a temp subdirectory. - Open in default app. The decrypted file (or folder) is opened using the operating system’s default handler — the same app that would open it if you double-clicked it normally.
- Floating Save & Relock dialog. A small always-on-top dialog appears with the message “File opened in temporary view mode. You can make edits directly.” and a single 🔒 SAVE EDITS & RELOCK button. This dialog stays on screen while you work.
-
Save and relock. When you click SAVE EDITS & RELOCK, Secure Crypt reads the (now-edited) temp file back from disk, generates a fresh 16-byte salt and 12-byte nonce using
os.urandom, re-encrypts the data with AES-256-GCM, and overwrites the original.scryptor.scryptfoldfile. The same flag byte (including theMmandatory flag if present) is preserved in the new file. -
Cleanup. The entire temporary directory is deleted with
shutil.rmtree. As a final privacy step, the clipboard is cleared —clipboard_clear()followed byclipboard_append('')— so any text you may have copied from the temp file is not left in memory.
Quick View a file
Click 'QUICK VIEW FILE (Auto-Relock)'
At the top of the Secure Crypt window, click the ⚡ QUICK VIEW FILE (Auto-Relock) button.
Select the .scrypt file
A file picker opens filtered to
*.scrypt files. Browse to and select the encrypted file you want to view.Enter the password
A dialog prompts “Enter password to view this file:”. Type the correct password. If the password is wrong, you will see an error dialog titled “Decryption Error” with the message “Incorrect password or corrupted data.” and the operation is aborted.
File opens in the default application
The decrypted file is opened by the OS default handler. For example, a
.docx file opens in your word processor, a .jpg opens in your image viewer, and a .txt opens in your text editor.Make your edits and save inside the application
Edit the file as needed, then save it using the application’s own Save command (e.g., Ctrl+S / Cmd+S). Do not close Secure Crypt.
Close the application
Fully close the external application before proceeding. This releases any file locks that could block Secure Crypt from reading the updated temp file.
Click 'SAVE EDITS & RELOCK' in the floating dialog
Click 🔒 SAVE EDITS & RELOCK in the always-on-top dialog. Secure Crypt re-reads the temp file, re-encrypts it with a fresh salt and nonce, overwrites the original
.scrypt file, deletes the temp directory, and clears the clipboard. A confirmation dialog shows “Changes saved. File re-locked.”Quick View a folder
Select the .scryptfold file
A file picker opens filtered to
*.scryptfold files. Select the encrypted folder archive.Folder opens in the file manager
The decrypted folder tree is extracted to a temp subdirectory and opened by the OS default handler (typically your file manager). You can browse, open, and edit files inside it normally.
Edit files, save, and close all applications
Make your changes, save them, and close all applications that have files from the temp folder open.
Opening encrypted files directly (Windows)
On Windows, Secure Crypt registers file associations for.scrypt and .scryptfold in the Windows registry the first time it runs (ve.reg_assoc() is called automatically on startup). This means you can open encrypted files directly from Windows Explorer without launching Secure Crypt manually:
- Double-click a
.scryptor.scryptfoldfile in Explorer. - Secure Crypt launches with the file path passed as a command-line argument (
sys.argv[1]). - The main window is hidden automatically (
root.withdraw()). - A password prompt appears: “Enter password to view this file:” (or “…this folder:” for
.scryptfold). - After the correct password is entered, Quick View proceeds exactly as described above.
- When you click SAVE EDITS & RELOCK, the app closes automatically after saving.
Force Password mode
When a file is locked with the Force Password Every Time checkbox enabled, Secure Crypt writes anM flag byte at position 0 of the encrypted archive. Files carrying this flag are mandatory-lock files.
See the Locking Files guide for more detail on how to apply the Force Lock flag when encrypting.