Table of Contents

Class DesSimple

Namespace
PolarStudioGlobals
Assembly
PolarStudioGlobals.dll

Depricated class for the old DES algorithm.

public static class DesSimple
Inheritance
DesSimple
Inherited Members

Methods

DecryptBytes(byte[], byte[])

public static string DecryptBytes(byte[] pSecretCode, byte[] pKey)

Parameters

pSecretCode byte[]
pKey byte[]

Returns

string

DecryptHex(string, string)

public static string DecryptHex(string pSecretCode, string pKey)

Parameters

pSecretCode string
pKey string

Returns

string

DecryptText(string, string)

public static string DecryptText(string pInputHex, string pKey)

Parameters

pInputHex string
pKey string

Returns

string

EncryptBytes(byte[], byte[])

public static string EncryptBytes(byte[] pOriginal, byte[] pKey)

Parameters

pOriginal byte[]
pKey byte[]

Returns

string

EncryptHex(string, string)

public static string EncryptHex(string pOriginal, string pKey)

Parameters

pOriginal string
pKey string

Returns

string

EncryptText(string, string)

public static string EncryptText(string pInputText, string pKey)

Parameters

pInputText string
pKey string

Returns

string

MakeHash(string, string)

public static string MakeHash(string pInputString, string pKey = "")

Parameters

pInputString string
pKey string

Returns

string

SignText(string, string, int)

Creates a hash in hex

public static string SignText(string pInputText, string pSignatureKey, int pAlgorithm = 0)

Parameters

pInputText string
pSignatureKey string
pAlgorithm int

1: sha / 2:MD5 else: auto (Signature="": Sha else MD5)

Returns

string