Interface ISaveSystemEncryption
Save System Encryption interface.
Namespace: Bayat.SaveSystem.Security
Assembly: Bayat.SaveSystem.Runtime.dll
Syntax
public interface ISaveSystemEncryption
Methods
| Improve this Doc View SourceGetReadStream(IStorageStream, String)
Gets the cryptographic stream by using the given stream for reading encrypted data. (Decrypting)
Declaration
SaveSystemCryptoStream GetReadStream(IStorageStream stream, string password)
Parameters
Type | Name | Description |
---|---|---|
IStorageStream | stream | The raw stream |
System.String | password | The decryption password |
Returns
Type | Description |
---|---|
SaveSystemCryptoStream | A cryptographic stream wrapper which has an underlying System.Security.Cryptography.CryptoStream for reading encrypted data |
GetWriteStream(IStorageStream, String)
Gets the cryptographic stream by using the given stream for writting encrypted data. (Encrypting)
Declaration
SaveSystemCryptoStream GetWriteStream(IStorageStream stream, string password)
Parameters
Type | Name | Description |
---|---|---|
IStorageStream | stream | The raw stream |
System.String | password | The encryption password |
Returns
Type | Description |
---|---|
SaveSystemCryptoStream | A cryptographic stream wrapper which has an underlying System.Security.Cryptography.CryptoStream for writting encrypted data |