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