Exemple #1
0
 public static void Write(Stream outputStream, ProtectedKey key)
 {
     IKeyWriter writer = new KeyReaderWriter();
     writer.Write(outputStream, key);
 }
Exemple #2
0
 public static ProtectedKey Read(Stream inputStream, DataProtectionScope dpapiProtectionScope)
 {
     IKeyReader reader = new KeyReaderWriter();
     return reader.Read(inputStream, dpapiProtectionScope);
 }
Exemple #3
0
 public static ProtectedKey RestoreKey(Stream inputStream, string passphrase, DataProtectionScope protectionScope)
 {
     IKeyReader reader = new KeyReaderWriter();
     return reader.Restore(inputStream, passphrase, protectionScope);
 }
Exemple #4
0
 public static void ArchiveKey(Stream outputStream, ProtectedKey keyToArchive, string passphrase)
 {
     IKeyWriter writer = new KeyReaderWriter();
     writer.Archive(outputStream, keyToArchive, passphrase);
 }
Exemple #5
0
        public static void Write(Stream outputStream, ProtectedKey key)
        {
            IKeyWriter writer = new KeyReaderWriter();

            writer.Write(outputStream, key);
        }
Exemple #6
0
        public static ProtectedKey RestoreKey(Stream inputStream, string passphrase, DataProtectionScope protectionScope)
        {
            IKeyReader reader = new KeyReaderWriter();

            return(reader.Restore(inputStream, passphrase, protectionScope));
        }
Exemple #7
0
        public static ProtectedKey Read(Stream inputStream, DataProtectionScope dpapiProtectionScope)
        {
            IKeyReader reader = new KeyReaderWriter();

            return(reader.Read(inputStream, dpapiProtectionScope));
        }
Exemple #8
0
        public static void ArchiveKey(Stream outputStream, ProtectedKey keyToArchive, string passphrase)
        {
            IKeyWriter writer = new KeyReaderWriter();

            writer.Archive(outputStream, keyToArchive, passphrase);
        }