crypto: Use same salt every time

This commit is contained in:
Hylke Bons 2016-03-28 19:53:45 +01:00
parent 49b21a17fe
commit 6900af0243

View file

@ -313,11 +313,13 @@ namespace SparkleLib.Git {
{
// Set up the encryption filter
SparkleGit git_config_smudge = new SparkleGit (TargetFolder,
"config filter.encryption.smudge \"openssl enc -d -aes-256-cbc -base64 -salt" + " " +
"config filter.encryption.smudge \"openssl enc -d -aes-256-cbc -base64" + " " +
"-S " + password.SHA256 (this.password_salt) + " " +
"-pass file:.git/info/encryption_password\"");
SparkleGit git_config_clean = new SparkleGit (TargetFolder,
"config filter.encryption.clean \"openssl enc -e -aes-256-cbc -base64 -salt" + " " +
"config filter.encryption.clean \"openssl enc -e -aes-256-cbc -base64" + " " +
"-S " + password.SHA256 (this.password_salt) + " " +
"-pass file:.git/info/encryption_password\"");
git_config_smudge.StartAndWaitForExit ();