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
encryptedStringstring
Returns
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
unencryptedStringstring
Returns
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
Returns
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
unencryptedStringstring
Returns
GetRandomPassword()
Generate and return a random password string.
public abstract string GetRandomPassword()
Returns
VerifyOneWay(string, string)
return true if an encrypted string matches an unencrypted string.
public abstract bool VerifyOneWay(string unencryptedString, string encryptedString)