Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PasswordEncryption.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
10 public abstract class PasswordEncryption
11 {
12 private string password;
13
18 {
19 this.password = Password;
20 }
21
25 protected string Password => this.password;
26
30 public abstract string AlgorithmOID
31 {
32 get;
33 }
34
39 public abstract void EncodePkcs5AlgorithmIdentifier(DerEncoder Der);
40
46 public abstract byte[] Encrypt(byte[] PlainText);
47
48 }
49}
Encodes data using the Distinguished Encoding Rules (DER), as defined in X.690
Definition: DerEncoder.cs:40
Abstract base class for password-based encryption algorithms
abstract void EncodePkcs5AlgorithmIdentifier(DerEncoder Der)
Encodes the AlgorithmIdentifier, as defined in PKCS#5 (RFC 2898).
abstract string AlgorithmOID
Object Identity for the algorithm.
PasswordEncryption(string Password)
Abstract base class for password-based encryption algorithms
abstract byte[] Encrypt(byte[] PlainText)
Encrypts data.