Commits

Christian Specht committed 0aa0c42

change encryption entropy to user's SID

Comments (0)

Files changed (1)

src/BitbucketBackup/StringEncryptor.cs

 using System;
 using System.Security.Cryptography;
+using System.Security.Principal;
 using System.Text;
 
 namespace BitbucketBackup
         /// <summary>
         /// entropy for password encryption
         /// </summary>
-        private readonly static byte[] entropy = { 1, 2, 3, 4 };
+        private readonly static byte[] entropy = Encoding.Unicode.GetBytes(WindowsIdentity.GetCurrent().User.ToString());
 
         /// <summary>
         /// Encrypts the given string.