WALTER | Workable Algorithms for Location-aware Transmission, Encryption Response

SymmetricEncryption Class

Class SymmetricEncryption uses a rotating IV with a given password. The IV is stored in the cypher bytes ensuring that the same text generates a different cypher result each time.

Namespace:  Walter
Assembly:  Walter (in Walter.dll)

Syntax


[DebuggerNonUserCodeAttribute]
[DebuggerStepThroughAttribute]
public sealed class SymmetricEncryption : LicenseBase

Examples


This sample shows how to register SymmetricEncryption with a application password to securely and efficiently use it in your application.
C#
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
// Other service configurations...
    ///
// Configure SymmetricEncryption with a default password
services.UseSymmetricEncryption("your-secure-password");
    ///
// Continue with service configuration...
}
}
Use DI to get the SymmetricEncryption instance injected in your class
class MySecureStorage
{
private readonly SymmetricEncryption _cypher;
public MySecureStorage(SymmetricEncryption cypher)
{
_cypher= cypher;
    ///
}
... rest of your code
}

Inheritance Hierarchy


Walter.Model..::..LicenseBase
      Walter..::..SymmetricEncryption