コード例 #1
0
        private static void CreateSaltFile(string directoryPath, byte[] salt)
        {
            string saltFilePath = Path.Combine(directoryPath, Constants.SaltFile);

            File.WriteAllBytes(saltFilePath, salt);
            FileHandling.SetFileAttributesReadOnly(saltFilePath);
        }
コード例 #2
0
 private static void Finalize(string inputFilePath, string outputFilePath)
 {
     if (Globals.Overwrite)
     {
         FileHandling.OverwriteFile(inputFilePath, outputFilePath);
     }
     else if (Globals.ObfuscateFileNames)
     {
         RestoreFileName.RemoveAppendedFileName(inputFilePath);
     }
     FileHandling.SetFileAttributesReadOnly(outputFilePath);
 }