CryptoHelper Class
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 8.0.9673)
Provides various cryptography-related helper methods.
Syntax
public static class CryptoHelper
Inherited Members
Properties
| Name | Description |
|---|---|
| UseFipsAlgorithmsOnly | Enables or disables an option that specifies whether only FIPS 140-3 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). |
| GetOption(Object, String) | Gets internal option. |
| 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. |
| SetOption(Object, String, Object) | Sets internal option. |
| TryGetOption<T>(Object, String, out T) | Gets internal option if available. |