cosmocode / dokuwiki-plugin-encryptedpasswords

Store 256 bit AES encrypted text in your DokuWiki pages. by Wolfgang Reszel
https://www.dokuwiki.org/plugin:encryptedpasswords
GNU General Public License v2.0
1 stars 6 forks source link

Decrypt of legacy passwords fails #4

Closed DeanCording closed 1 year ago

DeanCording commented 2 years ago

Recently upgraded to version 2022-03-16 and now it will not decrypt my existing passwords.

Have confirmed that the encryption is valid using the command:

echo 'U2FsdGVkX19mBmpZ2Jq67aUTk7Qo1PgMqveRhAK90MI=' | openssl base64 -d |openssl aes-256-cbc -d -md md5

DeanCording commented 1 year ago

Looking into this some more. It is the copy to clipboard function that fails - displaying them in the clear works ok.

In PageHandling.js the showClear function calls this.aes.autodecrypt(cipher, passphrase) whereas copyHandler calls this.aes.decrypt(cipher, passphrase). copyHandler should call autodecrypt

tiltX commented 1 year ago

Hi, could you please make this fix available to the dokuwiki update mechanism? I've noticed that you have upgraded the version in commit 377e2ad3879fedb8493a6c76f65077fcf892415e but the extension manager still shows 2022-03-16 as the latest version available.

Thank you.