Table of Contents

Class CPSecurityBaseClass

Namespace
Contensive.BaseClasses
Assembly
CPBase.dll
public abstract class CPSecurityBaseClass
Inheritance
CPSecurityBaseClass
Inherited Members

Methods

DecryptTwoWay(string)

Return an AES decrypted string. This is a symetric encryption. A value encrypted, can be decrypted back to the same string The result is not repeatable. If you encrypt the same source twice, the result may not be the same each time.

public abstract string DecryptTwoWay(string encryptedString)

Parameters

encryptedString string

Returns

string

EncryptOneWay(string)

return an encrypted string. This is a hash. One-way encryption cannot be reversed. This encrypted string is repeatable, so run the same encryption twice and the encryption will match

public abstract string EncryptOneWay(string unencryptedString)

Parameters

unencryptedString string

Returns

string

EncryptOneWay(string, string)

return an encrypted string. This is a hash. One-way encryption cannot be reversed. This encrypted string is repeatable, so run the same encryption twice and the encryption will match

public abstract string EncryptOneWay(string unencryptedString, string salt)

Parameters

unencryptedString string
salt string

Returns

string

EncryptTwoWay(string)

Return an AES encrypted string. This is a symetric encryption. A value encrypted, can be decrypted back to the same string The result is not repeatable. If you encrypt the same source twice, the result may not be the same each time.

public abstract string EncryptTwoWay(string unencryptedString)

Parameters

unencryptedString string

Returns

string

GetRandomPassword()

Generate and return a random password string.

public abstract string GetRandomPassword()

Returns

string

VerifyOneWay(string, string)

return true if an encrypted string matches an unencrypted string.

public abstract bool VerifyOneWay(string unencryptedString, string encryptedString)

Parameters

unencryptedString string
encryptedString string

Returns

bool