Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

CryptoHelper Class

Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9147)

Provides various cryptography-related helper methods.

Syntax
public static class CryptoHelper
Inheritance
Object
CryptoHelper
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()

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.

In This Article
  • Properties
  • Methods
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies