public static AESCrypter Instance() { if (_instance == null) { _instance = new AESCrypter(); } return(_instance); }
private void SymetricDropPanelKey_OnDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(DataFormats.FileDrop)) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); AESCrypter.Instance().SetKeyFilePath(files[0]); SymetricKeyNameText.Text = Path.GetFileName(files[0]); } }
private void SymetricDecrypt_OnClick(object sender, RoutedEventArgs e) { AESCrypter.Instance().Decrypt(); }