diff options
author | Mario Vavti <mario@mariovavti.com> | 2020-08-21 10:55:55 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2020-08-21 10:55:55 +0200 |
commit | 49df57df45f82e2e0f1b10f2508f61b78d6d3ac0 (patch) | |
tree | da108b3e816419354814b143b675a8a933364f51 /include/bbcode.php | |
parent | 374c30999acb19fd9ec828a266106e11367c7584 (diff) | |
download | volse-hubzilla-49df57df45f82e2e0f1b10f2508f61b78d6d3ac0.tar.gz volse-hubzilla-49df57df45f82e2e0f1b10f2508f61b78d6d3ac0.tar.bz2 volse-hubzilla-49df57df45f82e2e0f1b10f2508f61b78d6d3ac0.zip |
use the default setting and also add the mode to the cipher. aes-128 is to be preferred over aes-256 according to bruce schneier https://www.schneier.com/blog/archives/2009/07/another_new_aes.html#c386957
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index ea04eb470..535e4ac33 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -257,7 +257,7 @@ function bb_parse_crypt($match) { $x = random_string(); - $f = ((in_array($algorithm, ['AES-256', 'rot13', 'triple-rot13'])) ? 'hz_decrypt' : 'red_decrypt'); + $f = ((in_array($algorithm, ['AES-128-CCM', 'rot13', 'triple-rot13'])) ? 'hz_decrypt' : 'red_decrypt'); $Text = '<br /><div id="' . $x . '"><img class="cursor-pointer" src="' . z_root() . '/images/lock_icon.svg" onclick="' . $f . '(\'' . $algorithm . '\',\'' . $hint . '\',\'' . $match[2] . '\',\'#' . $x . '\');" alt="' . t('Encrypted content') . '" title="' . t('Encrypted content') . '" /></div><br />'; |