Class SaveSystemSymmetricEncryption
Save System symmetric algorithm encryption implementation.
Inheritance
System.Object
SaveSystemSymmetricEncryption
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Bayat.SaveSystem.Security
Assembly: Bayat.SaveSystem.Runtime.dll
Syntax
public class SaveSystemSymmetricEncryption : ISaveSystemEncryption
Constructors
| Improve this Doc View SourceSaveSystemSymmetricEncryption()
Declaration
public SaveSystemSymmetricEncryption()
SaveSystemSymmetricEncryption(String)
Declaration
public SaveSystemSymmetricEncryption(string algorithmName)
Parameters
Type | Name | Description |
---|---|---|
System.String | algorithmName |
Fields
| Improve this Doc View SourceAlgorithmName
Declaration
public readonly string AlgorithmName
Field Value
Type | Description |
---|---|
System.String |
DefaultAlgorithmName
The default symmetric algorithm name.
Declaration
public const string DefaultAlgorithmName = "aes"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetReadStream(IStorageStream, String)
Gets the cryptographic stream by using the given stream for reading encrypted data. (Decrypting)
Declaration
public virtual 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
public virtual 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 |