Skip to content

Graphical interface ​

omy-gui is the desktop and mobile interface, built on Tauri v2 and Vue 3.

It works like a file manager ​

The interface is a file browser rather than an "encryption tool": a location sidebar on the left, a list of entries on the right, double-click to enter or open (single tap on mobile). Opening a locked encrypted file asks for its password first and opens the file right after it unlocks, without a second click.

Interface icons are all vector icons, so they render consistently across Windows, Android and other platforms.

No password is needed to get in. Opening the interface shows an ordinary browsing view, with .omy files marked as locked. You enter a password only when you want to see a file's contents, and other files in the same vault unlock automatically afterwards.

Unlocked entries show the decrypted original filename and thumbnail, with a playback tier badge (⚡ / 🔄 / 🐌) in the corner, so it is immediately clear whether a video will play smoothly.

Inline preview and playback ​

Opening an unlocked media file previews it in place:

  • Video: scrub the timeline with a preview of the target frame, adjust volume and playback speed, or jump 10 seconds backward/forward. On mobile, swipe to seek with a frame preview and hold for 2× playback. Timeline thumbnails are generated in memory on demand; nothing is decrypted to disk first
  • Audio: double-click an unlocked audio file on desktop or tap it on mobile to open the player. It shows the name, format, duration and buffered ranges, with play/pause, seeking, 10-second jumps, 0.5–2× speed, volume and mute. Closing, switching files or locking stops playback and releases media buffers
  • Images and text: displayed inline

Audio uses the same Range path as video to read and decrypt on demand, without making a plaintext copy first. Local standalone files and container entries no longer read the entire ciphertext into memory per request; local audio/video responses are capped at 2 MiB even for an initial request without Range. Common MP3, M4A/M4B, WAV, FLAC, Ogg/Opus and AAC files can be played directly when the current WebView supports their codecs and containers.

Direct playback needs no FFmpeg. This version does not wire up real-time audio remuxing or transcoding. Unsupported formats such as WMA report an error with a retry action; convert them to a compatible format before encryption. Audio does not force Android into landscape, and no full-file waveform decoding, lyrics or playlist is introduced.

Everything travels over the custom omystream:// protocol, so plaintext is never written to disk. The security precondition for this path was established by measurement: the response headers must include Cache-Control: no-store and friends, or the WebView may cache decrypted data on disk.

Main features ​

FeatureNotes
EncryptPick files or folders; set chunk size, KDF profile, thumbnails, original handling
Decrypt / restoreRestore one or many to a chosen location
BrowseMixed listing of plain files and .omy, with lock state visible
Preview and playbackVideo seeking, volume, speed, 10-second jumps and mobile press-to-speed-up; images, audio and text inline; arrow keys, the side buttons or a horizontal swipe flip to the previous / next file in the folder; images support pinch zoom, double-click zoom and Ctrl + wheel
Password managementAdd key slots, change passwords, re-encrypt
Drag to encrypt (desktop)Drag files from one folder in your system file manager onto the window: omy opens that folder, selects them and shows the encrypt dialog
Keyboard (desktop)Arrow keys move the current item, Shift + arrows or Shift + click selects a range; Enter opens, Delete moves to trash, Shift + Delete deletes permanently (with confirmation), F2 renames, Esc closes the topmost dialog or preview
SortingSort by name, size, modified time or type (folders always first); click a column header in list view; the choice is remembered on this device
Context menuOpen, open with another app, reveal a file or folder in the file manager, password management, move to trash and permanent delete (asks for confirmation); PC uses the native Windows picker, Android uses a native app list
Devices and sharingDiscover, pair, browse remote files and play them directly
Remote locationsConnect a WebDAV cloud / NAS and stream .omy; on Android, open externally as read-only or editable; see Remote locations
SettingsGeneral, Remote locations, Security & passwords, Encryption defaults, Playback & preview, Devices & sharing, About (see below)
ThemeLight and dark, plus an accent color (blue, teal, violet, rose, amber), under Settings → General
LanguagesSimplified Chinese and English, following the system locale (under Settings → General)

Security constraints ​

The interface runs under a strict CSP: default-src 'none' and script-src 'self', with no eval and no inline scripts.

Two consequences follow. Vue templates must be precompiled (the runtime compiler uses new Function internally, which the CSP blocks), and scripts or styles cannot execute from data URIs. img-src separately allows data URIs for in-memory images such as timeline frame previews.

Tauri's protocol-asset is also not enabled — that protocol exposes filesystem paths directly, which contradicts keeping plaintext off disk. All content goes through the controlled omystream:// instead.

The native directory picker is invoked only on the Rust side and wrapped in a controlled command, so the frontend has no ability to select arbitrary paths (the capabilities file grants no dialog permission). “Open with another app” likewise accepts only backend-registered file tokens: Android creates a content:// URI for that file and grants temporary read access only to the app the user selected.

Mobile ​

The Android build shares the same components and only swaps the shell — it is not a second interface. List, search, progress and statistics logic are identical.

The breakpoint is 768px: below it a single column with bottom navigation, above it the sidebar layout. Rotating the device switches in real time. On mobile the bottom navigation has four tabs — Files / Remote / Devices / Settings — with language and theme moved into Settings → General. The shared top bar on the Files and Remote locations pages stays below the system status bar; when Android WebView exposes no safe-area inset, it falls back to 24 px.

The mobile layout differs from desktop:

  • The top bar shows the current folder name, with a line underneath for the file count and locked count (replacing the desktop status bar). Search collapses into a magnifier icon; tapping it slides a search field over the title. The field stays open while a query is active; ✕ clears and closes it.
  • A path strip sits below the top bar: go up on the left, a horizontally scrollable path in the middle, and a grid / list toggle on the right.
  • The sidebar lives in a drawer opened from the menu button at the top left; swipe left inside the drawer to close it. Swiping in from the screen edge is intentionally not supported, so it never fights Android's system back gesture.
  • During multi-select an action bar rises from the bottom showing the selection count and whichever of Select all / Encrypt / Restore / Manage passwords currently apply; ✕ leaves selection mode.
  • The "+" floating button at the bottom right opens a New menu: open folder, new folder and new remote location (on desktop these live in the sidebar and context menu); it steps aside for the action bar while selecting. On Android "Open folder" first asks for "All files access", then shows the system folder picker; Android does not allow picking the storage root or Download itself there (their subfolders are fine) — open those from the sidebar instead.
  • In the remote locations list, tapping a row enters it; rename, remove and delete account move into the "⋮" menu at the end of the row.

Opening a video preview on Android automatically switches to landscape and closing it restores the system orientation. The player keeps its touch gesture model even when the landscape viewport exceeds the responsive breakpoint. The system Back button first closes the active menu or dialog, closes the drawer or search field, returns from a settings subpage, closes the preview, or moves up one folder; it exits the app only from the application start state. On mobile, long-press menus and dialogs rise from the bottom of the screen, and menus are titled with the item they act on. “Open with another app” shows a native app list and can remember a default app by file extension; saved associations can be cleared under Settings → Playback & preview, and are discarded automatically if the app is removed or stops handling that format. Telegram login omits the desktop-only tdata reuse entry.

Dialogs, menus and list changes are animated; when the system's "reduce motion" setting is on, movement and scaling animations are turned off.

Touch interaction genuinely differs

Desktop opens entries by double-click, a gesture touchscreens do not have (dblclick in a mobile WebView either never fires or gets eaten by double-tap zoom). On mobile, a single tap always opens a file or folder; only a long press enters or extends file selection, and an existing selection never changes what a tap means. So opening, multi-select and dragging are handled separately on mobile — it is not merely CSS adaptation.

Two platform limits apply on mobile: no FFmpeg, so video thumbnails and P2/P3 playback are unavailable; and no trash, so "move to trash" is greyed out with the reason shown; only permanent deletion (which asks for confirmation) is available.

Storage access permission ​

On first launch the sidebar shows "Allow access to phone files". Only after granting it does the sidebar list locations such as internal storage, SD card, camera, documents, movies and music.

This uses Android's all-files access (MANAGE_EXTERNAL_STORAGE). On API 30 and above it opens the system settings page; on API 29 and below it is the standard runtime permission dialog.

Why not the system file picker (SAF)?

SAF hands out content:// URIs. After a rename the URI changes and the granted permission stops working — which breaks exactly the precondition encrypted writes rely on, atomic replacement within the same directory. All-files access keeps real file paths.

The permission state is queried live every time, never cached in the app. That is deliberate: a cached "granted" flag would keep claiming access after the user revokes it in system settings, and every file operation would then fail with a permission error whose message points nowhere near the real cause. When access is revoked the sidebar reports an error instead of returning a partial listing.

Settings ​

On desktop settings is a dialog (gear in the top bar); on mobile it is a list with second-level pages under the Settings tab. The categories are the same:

CategoryContents
GeneralLanguage, theme, accent color, default view (grid / list), open at startup (last folder / home)
Remote locationsRecognition scope, request concurrency, and the Remote cache page for temporary-block limits/usage/clearing plus complete-original-file permanent storage
Security & passwordsAuto-lock (idle duration, whether backgrounding counts as idle, playback exemption), number of passwords loaded in the current session, lock now, recovery-code hint
Encryption defaultsKDF profile, chunk size, pre-encryption compression, filename encryption, original-file handling; these become the initial values in the encrypt dialog
Playback & previewWhether to show thumbnails in the list; Android also lists and clears default apps saved by file extension
Devices & sharingThis device's name, whether LAN sharing auto-starts, entry to manage paired devices
AboutApp version, OMYFILE format version, layered open-source licenses, config path and portable mode

The default view and startup location are persisted: toggling grid/list in the UI is remembered, and the last browsed folder is restored on the next launch.

Auto-lock semantics: backgrounding counts as idle (whether it locks depends on the idle setting), active media playback is not idle, and you can always Lock now from the security page.

Launching ​

Desktop:

bash
cargo run --release -p omy-gui

Android: install the APK from Releases.

Full build steps are in Building from source.

omy-core / omy-net are MIT OR Apache-2.0, omy-media is LGPL-2.1+, omy-cli / omy-gui are GPL-3.0+.