CryptoHelper Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9313)
Provides various cryptography-related helper methods.
Syntax
public static class CryptoHelperInherited Members
Properties
| Name | Description | 
|---|---|
| UseFipsAlgorithmsOnly | Enables or disables an option that specifies whether only FIPS 140-2 compliant cryptographic algorithm providers are to be used. | 
Methods
| Name | Description | 
|---|---|
| CreateRandomNumberGenerator() | Creates an instance of default random number generator. | 
| DecodeSignature(Byte[], KeyAlgorithm) | Decodes a signature from a PKCS #7 form. | 
| EncodeSignature(Byte[], KeyAlgorithm) | Encodes a signature to a PKCS #7 form. | 
| EncodeString(String, Encoding) | Encodes string as ASN.1 value (IA5String or UTF8String). | 
| GetRandomBytes(Byte[]) | Fills specified array of bytes with a cryptographically strong random sequence of values. | 
| GetRandomBytes(Int32) | Returns an array of bytes with a cryptographically strong random sequence of values. |