Generated by DocFX

Class SymetricProvider

Inheritance
System.Object
SymetricProvider
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: VEDriversLite.Security
Assembly: VEDriversLite.dll
Syntax
public static class SymetricProvider

Fields

| Improve this Doc View Source

IVDivider

Declaration
public static readonly string IVDivider
Field Value
Type Description
System.String
| Improve this Doc View Source

IVSize

Declaration
public static readonly int IVSize
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

ContainsIV(String)

Declaration
public static bool ContainsIV(string etext)
Parameters
Type Name Description
System.String etext
Returns
Type Description
System.Boolean
| Improve this Doc View Source

DecryptBytes(Byte[], Byte[], Byte[])

Symmetrical decryption of the bytes

Declaration
public static byte[] DecryptBytes(byte[] key, byte[] secret, byte[] iv = null)
Parameters
Type Name Description
System.Byte[] key

Password for the encryption

System.Byte[] secret

Data to decrypt

System.Byte[] iv
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

DecryptBytes(String, Byte[], Byte[])

Declaration
public static byte[] DecryptBytes(string key, byte[] secret, byte[] iv = null)
Parameters
Type Name Description
System.String key
System.Byte[] secret
System.Byte[] iv
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

DecryptString(String, String, Byte[])

Symmetrical decryption of the text

Declaration
public static string DecryptString(string key, string cipherText, byte[] iv = null)
Parameters
Type Name Description
System.String key

Password for the encryption

System.String cipherText

Text which should be decrypted

System.Byte[] iv
Returns
Type Description
System.String
| Improve this Doc View Source

EncryptBytes(Byte[], Byte[], Byte[])

Symmetrical encryption of the bytes

Declaration
public static byte[] EncryptBytes(byte[] key, byte[] secret, byte[] iv = null)
Parameters
Type Name Description
System.Byte[] key

Password for the encryption

System.Byte[] secret

data to encrypt

System.Byte[] iv
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

EncryptBytes(String, Byte[], Byte[])

Symmetrical encryption of the bytes.

Declaration
public static byte[] EncryptBytes(string key, byte[] secret, byte[] iv = null)
Parameters
Type Name Description
System.String key
System.Byte[] secret
System.Byte[] iv
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

EncryptString(String, String, Byte[])

Symmetrical encryption of the text.

Declaration
public static string EncryptString(string key, string plainText, byte[] iv = null)
Parameters
Type Name Description
System.String key

Password for the encryption

System.String plainText

Text which should be encrypted

System.Byte[] iv
Returns
Type Description
System.String
| Improve this Doc View Source

GetIV()

Declaration
public static byte[] GetIV()
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

JoinIVToString(String, Byte[])

Declaration
public static string JoinIVToString(string etext, byte[] iv)
Parameters
Type Name Description
System.String etext
System.Byte[] iv
Returns
Type Description
System.String
| Improve this Doc View Source

ParseIVFromString(String)

Declaration
public static (byte[] iv, string etext) ParseIVFromString(string etext)
Parameters
Type Name Description
System.String etext
Returns
Type Description
System.ValueTuple<System.Byte[], System.String>