private static void CreateSaltFile(string directoryPath, byte[] salt) { string saltFilePath = Path.Combine(directoryPath, Constants.SaltFile); File.WriteAllBytes(saltFilePath, salt); FileHandling.SetFileAttributesReadOnly(saltFilePath); }
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); }