From 513ecb378e9da08445ce6be86632097f6d46ea3a Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 28 Mar 2016 20:37:31 +0100 Subject: [PATCH] crypto: Use same salt every time --- SparkleLib/Git/SparkleFetcherGit.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index abbaa078..5e0af755 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -314,12 +314,12 @@ 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" + " " + - "-S " + password.SHA256 (this.password_salt) + " " + + "-S " + password.SHA256 (this.password_salt).Substring (0, 16) + " " + "-pass file:.git/info/encryption_password\""); SparkleGit git_config_clean = new SparkleGit (TargetFolder, "config filter.encryption.clean \"openssl enc -e -aes-256-cbc -base64" + " " + - "-S " + password.SHA256 (this.password_salt) + " " + + "-S " + password.SHA256 (this.password_salt).Substring (0, 16) + " " + "-pass file:.git/info/encryption_password\""); git_config_smudge.StartAndWaitForExit ();