From: Patrick Canterino Date: Thu, 28 Mar 2024 16:50:24 +0000 (+0100) Subject: Re-emplementing encryption using Sodium X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/be4715096f9a63d823da90c405f500d454247989?ds=inline;hp=be4715096f9a63d823da90c405f500d454247989 Re-emplementing encryption using Sodium Changes: - Encryption using Sodium - Key is generated using random_bytes() (cryptographically secure) - Encryption is done using a second file, which is renamed after encryption is complete (by using the same file, we would encrypt already encrypted data again) - A file encrypted using Sodium is marked with "C2" in the link file, so we can distinguish them from files encrypted using mcrypt ToDo: - Error checking - Show a warning in the admin interface if Sodium is not available ---