AES Encryption Online 透過任何現代瀏覽器分頁在 Android 上執行,完全在手機上套用 AES-256-GCM 並以 PBKDF2-SHA-256 進行金鑰衍生,無需安裝應用程式,也無需上傳到任何伺服器。在 Chrome、Firefox 或 Edge 中開啟頁面,切換到 Encrypt,輸入明文以及至少 12 個 UTF-8 位元組的密碼,頁面就會產生一個自含的 JSON 套件,可以複製、儲存,或透過任何 Android 分享應用程式傳送。解密使用相同的密碼對應同一個套件;若密碼錯誤或套件遭到編輯,AES-GCM 的驗證標籤會導致操作失敗,且不會洩漏任何部分明文。每次執行都會產生全新的 16-byte salt 與全新的 12-byte IV,因此對同一段文字加密兩次會依設計產生兩個不同的套件。明文、密碼、衍生的金鑰以及解密結果都不會離開當前分頁;所有運算都在裝置上的 Web Crypto API 內部完成並取用。

aes encryption online on android
AES Encryption Online on Android: Browser Walkthrough

Why a Browser Tool Fits the Phone in Your Pocket

想要加密一段文字的 Android 使用者有兩條務實的路徑:從 Play Store 安裝一款專門的 AES 應用程式,或開啟瀏覽器分頁執行本機的 Web Crypto 實作。安裝路徑會要求儲存權限、接受背景更新,並將使用者綁定在某個供應商的金鑰處理實務上。瀏覽器路徑則不需要這些。頁面只需載入一次,接著密碼學運算會在頁面的 JavaScript 環境中使用 Web Crypto 進行,因此裝置不需要為了加密五十個字的會議筆記而再多裝一個二進位檔案。對於每週只需要使用 AES 加密幾次的人來說,這樣的取捨有利於瀏覽器方案。

瀏覽器選項適合行動裝置的另一個原因:它能跨裝置跟著使用者走。同一個 JSON 套件可以在 Android 上的 Chrome、iOS 上的 Safari、Linux 筆電上的 Firefox,或 Windows 上的 Edge 中開啟。只要收件人的瀏覽器實作了 Web Cryptography Level 2 規格,且套件本身是依文件化的 AES-256-GCM 參數所產生,該格式就能流通。然而 JSON 欄位配置並非通用標準,因此若第三方工具沒有重現相同的 UTF-8 處理、PBKDF2 參數、AES-GCM 標籤位置、base64url 編碼以及 JSON 欄位,就無法解密。這對個人之間的交換沒問題,但在承諾與他人技術棧相容之前,請先放在心上。

SituationBrowser AES toolAndroid native AES app
Quick one-off encryption on a borrowed phoneNo install, leaves no trace beyond the tabAdds a permanent app icon and permissions
Repeated work with very large filesBest for short text snippets, not a managed vaultBetter fit, with a built-in file picker and on-device storage
Sharing the same format across phone and laptopSame JSON package works in any modern browserOften locked to that app's export format
Strict enterprise key managementNot designed for vaults, escrow, or audit trailsSome apps integrate with MDM and key stores
Network-restricted environmentsLoads once, then runs without further internetSame — once installed, both work offline

Open the Tool in Your Android Browser

在 Android 手機上,工作流程從網址列開始,而不是 Play Store。開啟 Chrome(或任何公開 Web Crypto API 的瀏覽器),直接載入 AES Encryption Online 頁面。頁面只會渲染一個分頁,包含兩種模式、兩個文字欄位與密碼框;除此之外無需再載入任何內容。從瀏覽器選單將頁面加到主畫面,即可獲得一個一鍵啟動的圖示,以獨立框架開啟工具,對於每週需要執行同樣加密作業數次的情況相當方便。

行動鍵盤、自動完成與剪貼簿紀錄都會以桌面使用者不見得會想到的方式與密碼欄位互動。Gboard 的自動完成可能會建議儲存密碼;當該建議符合由真正的密碼管理工具管理的唯一通行詞時,這沒問題;但若該建議是手機儲存的憑證,最終被同步到 Google 的自動填入雲端,情況就不太好了。在加密之前請先確認密碼輸入正確——行動鍵盤經常自動校正或替換外觀相似的字元,而只要一個字元錯誤,就會在接收端導致驗證失敗。請使用支援生物辨識解鎖的密碼管理工具,這樣就不必在玻璃螢幕上手動重新輸入通行詞。

Encrypt a Text Snippet on Android

頁面開啟後,加密執行只需三個簡短步驟。依序的具體動作如下:

  1. Tap Encrypt at the top of the page so the form is in encryption mode, then enter the plaintext you want to protect in the first text field.
  2. Enter a unique password of at least 12 UTF-8 bytes in the password field, then run the encryption. The page derives a 256-bit AES key from PBKDF2-SHA-256 at 210,000 iterations and produces a fresh 16-byte salt plus a fresh 12-byte IV for this run.
  3. Copy the resulting JSON package from the output area. Preserve the package unchanged — every field, every base64url character, every quoted label must remain in place — and send the password to the recipient through a different channel.

Because the salt and IV are regenerated on every run, the output JSON changes even when the same plaintext and password are entered twice. That is expected and intentional, as documented in NIST SP 800-38D: an initialization vector for AES-GCM must be unique for a given key, and random generation is the simplest way to guarantee that property. Removing the duplication is also what protects against an attacker comparing two ciphertexts to confirm they hide the same message.

The plaintext, the password, the derived key, and the final JSON never leave the tab. They are not submitted to Lizely, not placed in cloud history, and not indexed by autocomplete. Sharing happens only when the user explicitly copies the JSON and pastes it into another app — that boundary is the user's choice, and Android's share sheet makes it easy to hand the package to Signal, Gmail, Drive, or any installed target.

Decrypt the JSON Package Back to Plaintext

On the receiving phone, the workflow mirrors the sender's steps with the mode switched.

  1. Tap Decrypt so the form is in decryption mode.
  2. Paste the unchanged JSON package into the package field and the matching password into the password field.
  3. Run the decryption. If the password is correct and the bytes are intact, the plaintext appears in the result field.

If the password is wrong, or if any byte of the package has been changed, AES-GCM's 128-bit authentication tag fails the check and the page reports an authentication error without revealing partial output. This is the core safety property: a tampered or mistyped password does not slowly leak the message. Validation runs first against the JSON labels, the numeric limits, the field syntax, the exact 16-byte salt length, the exact 12-byte IV length, and the minimum ciphertext length, and only then does Web Crypto attempt the authenticated operation. Any failure along that pipeline is reported as a validation error rather than a successful decryption.

Android Habits That Keep the Package Safe

Browser crypto is local, but the device around it is not. Several Android-specific habits reduce the chance that an exchanged package leaks:

  • Treat the password and the package as two separate artifacts. Send the JSON by one app — email, Signal, a file share — and the password by another. Reusing the same channel for both is the most common failure mode.
  • Clear the clipboard after pasting the JSON or the decrypted result. Android 13 and later auto-clears copied content after a short window, but older releases retain it indefinitely.
  • Disable screen recording and screenshot helpers before handling sensitive content. Some Android keyboards and accessibility tools can capture the screen in the background.
  • Use a unique high-entropy password from a password manager. PBKDF2 raises the cost of guessing, but no derivation function can rescue a short, reused, or leaked password.
  • Close the browser tab and the app that received the result once the exchange is done. The decrypted plaintext lives in the page's DOM until the tab is closed or refreshed.

If the device is shared, borrowed, or unattended for any length of time, these habits matter more than the choice of cipher. AES-256-GCM is a strong primitive, but it cannot protect content from a clipboard manager, a compromised browser extension, or a screen capture taken after decryption.

Inside the JSON Package: Standard Parts, Tool-Specific Layout

The JSON package declares its own format. The version label is fixed at 1; the cipher label says AES-256-GCM; the key-derivation label says PBKDF2-SHA-256; the iteration count is 210,000. The salt, IV, and ciphertext are stored as base64url strings — the URL-safe Base64 alphabet without padding, per RFC 4648 — so the file can be embedded inside another JSON document or sent over protocols that mangle the characters + and /.

Because the encoding is unpadded, the on-disk length of each base64url field is fixed by the number of raw bytes it carries. A worked example: 16 raw salt bytes = 16 × 8 = 128 bits, and in unpadded base64url at 6 bits per character the salt field is exactly ⌈128 / 6⌉ = ⌈21.33⌉ = 22 characters. The 12-byte IV is 12 × 8 = 96 bits, which encodes as ⌈96 / 6⌉ = 16 characters. The ciphertext length grows with the input and includes the 16-byte GCM authentication tag at the end, so a 30-character plaintext produces a 46-byte ciphertext block — 30 bytes of encrypted content plus 16 bytes of tag — which encodes to ⌈368 / 6⌉ = 62 characters. Those three fixed or predictable lengths are useful sanity checks when reviewing a package by hand on a phone.

The cryptographic ingredients follow standardized specifications, but the surrounding JSON field layout is specific to this tool, so other systems can interoperate only if they reproduce the same UTF-8 handling, PBKDF2 parameters, AES-GCM tag placement, base64url encoding, and JSON fields. Editing the package — for instance by inserting conventional padded Base64 where base64url is expected, swapping the salt and IV fields, or normalizing whitespace — will cause validation to fail on the next decrypt attempt. Treat the package as opaque, copy it as text, and keep the password out of band.

For a deeper look, see Base58 Decode on Android Without Installing an App.

For a deeper look, see HMAC Generator Example: A Real HMAC-SHA256 Walkthrough.