staticrypt icon indicating copy to clipboard operation
staticrypt copied to clipboard

Save encrypted data in HTML file as Base64.

Open jimhark opened this issue 5 months ago • 0 comments

Summary

Encrypted data, which is as large as the source html file, is encoded in the encrypted file as a hex string. Switching to Base64 encoding would reduce size by 1/3 and could improve performance.

Problem

Hex string encoding is too space inefficient to use for large data.

Proposed Solution

Store the encrypted data as Base64. A data URL is a great way to store data in an HTML file, and it supports Base64 encoding.

jimhark avatar Jul 21 '25 04:07 jimhark