From f8a04e76ea9aa5156e6e80a7534f1aa5a336429b Mon Sep 17 00:00:00 2001 From: Agando Date: Thu, 28 May 2026 18:01:22 +0200 Subject: auto: 2026-05-28_18:00 changes --- modules/ext/cryptogzip.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'modules/ext/cryptogzip.js') diff --git a/modules/ext/cryptogzip.js b/modules/ext/cryptogzip.js index 6f873ff..b67e067 100644 --- a/modules/ext/cryptogzip.js +++ b/modules/ext/cryptogzip.js @@ -1,9 +1,18 @@ class CryptoGzipModule { // CryptoGzipModule — VFS-level gzip/encrypt commands for WebX11 newOS4 - // Commands: gzip , gunzip , encrypt , decrypt - constructor(terminal) { - this.terminal = terminal; + // Commands: gzip , gunzip , encrypt , decrypt + constructor() { this.commands = {}; + this.terminal = null; + } + + getHelpInfo() { + return { + 'gzip': 'gzip — Compress a VFS file to .gz', + 'gunzip': 'gunzip — Decompress a .gz file', + 'encrypt': 'encrypt — AES-256-GCM encrypt a VFS file', + 'decrypt': 'decrypt — Decrypt a .enc file' + }; } _vfsExists(path) { @@ -279,3 +288,6 @@ class CryptoGzipModule { }; } } +if (typeof window.webx11 !== 'undefined' && window.webx11) { + webx11.moduleManager.registerModule(new CryptoGzipModule(), 'https://webx11.duckdns.org/spaces/newos4/modules/ext/cryptogzip.js'); +} -- cgit v1.2.3