Hacker News new | ask | show | jobs
by atoponce 3821 days ago
Encrypting files should probably include a salt-per-file, otherwise the same file contents will produce the same ciphertext when the same passphrase is provided.

    function openssl-encrypt() {
        openssl enc -aes-256-cbc -salt -in "${1}" -out "${2}"
    }