crypto: Use same salt every time
This commit is contained in:
parent
6900af0243
commit
513ecb378e
|
@ -314,12 +314,12 @@ namespace SparkleLib.Git {
|
||||||
// Set up the encryption filter
|
// Set up the encryption filter
|
||||||
SparkleGit git_config_smudge = new SparkleGit (TargetFolder,
|
SparkleGit git_config_smudge = new SparkleGit (TargetFolder,
|
||||||
"config filter.encryption.smudge \"openssl enc -d -aes-256-cbc -base64" + " " +
|
"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\"");
|
"-pass file:.git/info/encryption_password\"");
|
||||||
|
|
||||||
SparkleGit git_config_clean = new SparkleGit (TargetFolder,
|
SparkleGit git_config_clean = new SparkleGit (TargetFolder,
|
||||||
"config filter.encryption.clean \"openssl enc -e -aes-256-cbc -base64" + " " +
|
"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\"");
|
"-pass file:.git/info/encryption_password\"");
|
||||||
|
|
||||||
git_config_smudge.StartAndWaitForExit ();
|
git_config_smudge.StartAndWaitForExit ();
|
||||||
|
|
Loading…
Reference in a new issue