diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2025-04-08 10:54:24 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2025-04-08 10:54:24 +0000 |
| commit | 008c518d5d8e60c0168cd107dbfd1f23f9c4a701 (patch) | |
| tree | 8f3d8afbbf73ae7d59791a3347a557c194f691d0 /update.php | |
| parent | bb2c4b380165731c3f8abf0596fffb2a0953265b (diff) | |
| parent | 17b4e98249462a1feb71586d10cd5293d9487ab8 (diff) | |
Merge branch 'session-encryption' into 'master'
add optional encryption for stored session data using Sodium library
See merge request tt-rss/tt-rss!117
Diffstat (limited to 'update.php')
| -rwxr-xr-x | update.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/update.php b/update.php index 471e323c8..dfac5ab4c 100755 --- a/update.php +++ b/update.php @@ -84,6 +84,7 @@ "update-schema::" => ["[force-yes]", "update database schema, optionally without prompting"], "force-update" => "mark all feeds as pending update", "gen-search-idx" => "generate basic PostgreSQL fulltext search index", + "gen-encryption-key" => "generate an encryption key (ChaCha20-Poly1305)", "plugins-list" => "list installed plugins", "debug-feed:" => ["N", "update specified feed with debug output enabled"], "force-refetch" => "debug update: force refetch feed data", @@ -323,6 +324,10 @@ } } + if (isset($options["gen-encryption-key"])) { + echo "Generated encryption key: " . bin2hex(Crypt::generate_key()) . "\n"; + } + if (isset($options["plugins-list"])) { $tmppluginhost = new PluginHost(); $tmppluginhost->load_all($tmppluginhost::KIND_ALL); |