private void Decrypt_Click(object sender, RoutedEventArgs e) { bool err = FileDecrypt.TryFiles(h.dir); if (err) { while (true) { InputBox box = new InputBox("비밀번호를 입력해주세요.", "비밀번호가 맞지 않습니다.", ""); string password = box.ShowDialog(); if (box.canceled) { return; } if (FileDecrypt.TryFiles(h.dir, SHA256.Hash(password), excepts: new string[] { ".txt", ".json" })) { break; } } } h.thumb = ImageProcessor.ProcessEncrypt(File2.GetImages(h.dir).First()); h.files = h.files.Select(x => Path.Combine(Path.GetDirectoryName(x), Path.GetFileNameWithoutExtension(x))).ToArray(); h.encrypted = false; thumbNail.Source = h.thumb; thumbNail.ToolTip = GetToolTip(panel.Height); Process.Start(h.dir); }