Exemplo n.º 1
0
 public string performTextOperationToString(String text, VernamKey key)
 {
     return(VernamEngine.doOperation(new BitArray(ASCII.GetBytes(text)), key).ToString());
 }
Exemplo n.º 2
0
 public void performFileStreamOperation(String inputPath, String outputPath, VernamKey vernamKey)
 {
     VernamEngine.doStreamOperation(inputPath, outputPath, vernamKey);
 }
Exemplo n.º 3
0
 public void fileOperation(String filePath, VernamKey key)
 {
     new BitArrayWriter(VernamEngine.doOperation(new BitArrayReader(filePath).readFileIntoBitSet(), key), filePath).write();
 }
Exemplo n.º 4
0
 public void performFileOperation(BitArray fileBitSet, VernamKey key, String outputPath)
 {
     new BitArrayWriter(VernamEngine.doOperation(fileBitSet, key), outputPath).write();
 }
Exemplo n.º 5
0
 public void fileStreamOperationWithKeyFile(String inputPath, String outputPath, String vernamKeyPath)
 {
     VernamEngine.doStreamOperationWithKeyFile(inputPath, outputPath, vernamKeyPath);
 }
Exemplo n.º 6
0
 static void createDuplicatteWithKeyFile(string inputPath, string outputPath, string keyPath)
 {
     VernamEngine.doStreamOperationWithKeyFile(inputPath, outputPath, keyPath);
     MessageBox.Show("Operation complete", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Exemplo n.º 7
0
 static void overwriteExistingWithKeyFile(string inputPath, string keyPath)
 {
     VernamEngine.doStreamOperationKeyFileNoDuplicate(inputPath, keyPath);
     MessageBox.Show("Operation complete", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Exemplo n.º 8
0
 static void duplicateKeyInMemory(string inputPath, string outputPath, VernamKey vernamKey)
 {
     VernamEngine.doStreamOperation(inputPath, outputPath, vernamKey);
     MessageBox.Show("Operation complete", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Exemplo n.º 9
0
 static void existingWithKey(string inputPath, VernamKey vernamKey)
 {
     VernamEngine.doStreamOperationNoDuplicate(inputPath, vernamKey);
     MessageBox.Show("Operation complete", "Confirmation", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }