6.1 KiB
6.1 KiB
SecurityHelper Class
A class that contains methods for managing secure data processing and cryptography.
Definition
Namespace: CapyKit.Helpers
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d
C#
public class SecurityHelper
F#
type SecurityHelper = class end
| Inheritance | Object → SecurityHelper |
Constructors
| SecurityHelper | Initializes a new instance of the SecurityHelper class |
Methods
| CompareHashedPassword | Compares an unencrypted providedPassword with a stored, encrypted existingPassword. |
| CompareSessionID | Compares two session identifiers. |
| CompareStrings | Compare two strings as case sensative. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetRandomBytes | Generates a new byte array of the specified length with random values. |
| GetRandomPassword | Gets a cryptographically strong random password. |
| GetRandomString(Int32) | A convenience method to generate a random string of the specified length using all character sets. |
| GetRandomString(Int32, ValidCharacterCollection[]) | Gets a cryptographically strong random string using the character values found in [!:VALID_CHARACTERS]. |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| GetValidCharacterComposition | |
| HashPassword | Hashes an unencrypted password. |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Pbkdf2(String) | Generates a new Password object using the PBKDF2 algorithm with the provided password. This overload of the method generates a random salt value for added security. |
| Pbkdf2(String, Byte[]) | Generates a new Password object using the PBKDF2 algorithm with the provided password and salt. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Fields
| LOWER_CASE_CHARACTERS | A string of all the lower case characters. |
| NUMBER_CHARACTERS | A string of all the numeric characters. |
| saltSize | Default size of the generated salt. |
| SPECIAL_CHARACTERS | A string of the most common non-alphanumeric characters. |
| UPPER_CASE_CHARACTERS | A string of all the upper case characters. |