Click or drag to resize

CryptoHelper Class

Crypography related helper methods.
Inheritance Hierarchy
SystemObject
  Neon.CryptographyCryptoHelper

Namespace:  Neon.Cryptography
Assembly:  Neon.Cryptography (in Neon.Cryptography.dll) Version: 2.1.0
Syntax
public static class CryptoHelper

The CryptoHelper type exposes the following members.

Methods
  NameDescription
Public methodStatic memberComputeMD5Bytes(Byte)
Computes the MD5 hash for a byte array and returns the result as a byte array.
Public methodStatic memberComputeMD5Bytes(Stream)
Computes the MD5 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeMD5Bytes(String)
Computes the MD5 hash for a string and returns the result as a byte array.
Public methodStatic memberComputeMD5String(Byte)
Computes the MD5 hash for a byte array and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeMD5String(Stream)
Computes the MD5 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeMD5String(String)
Computes the MD5 hash for a string and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA1Bytes(Byte)
Computes the SHA1 hash for a byte array and returns the result as a byte array.
Public methodStatic memberComputeSHA1Bytes(Stream)
Computes the SHA1 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA1Bytes(String)
Computes the SHA1 hash for a string and returns the result as a byte array.
Public methodStatic memberComputeSHA1String(Byte)
Computes the SHA1 hash for a byte array and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA1String(Stream)
Computes the SHA1 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA1String(String)
Computes the SHA1 hash for a string and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA256Bytes(Byte)
Computes the SHA256 hash for a byte array and returns the result as a byte array.
Public methodStatic memberComputeSHA256Bytes(Stream)
Computes the SHA256 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA256Bytes(String)
Computes the SHA256 hash for a string and returns the result as a byte array.
Public methodStatic memberComputeSHA256String(Byte)
Computes the SHA256 hash for a byte array and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA256String(Stream)
Computes the SHA256 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA256String(String)
Computes the SHA256 hash for a string and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA512Bytes(Byte)
Computes the SHA512 hash for a byte array and returns the result as a byte array.
Public methodStatic memberComputeSHA512Bytes(Stream)
Computes the SHA512 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA512Bytes(String)
Computes the SHA512 hash for a string and returns the result as a byte array.
Public methodStatic memberComputeSHA512String(Byte)
Computes the SHA512 hash for a byte array and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA512String(Stream)
Computes the SHA512 hash for a stream from the current position' until the end and returns the result formatted as a lowercase hex string.
Public methodStatic memberComputeSHA512String(String)
Computes the SHA512 hash for a string and returns the result formatted as a lowercase hex string.
Public methodStatic memberDeriveKeyFromPassword
Generates a symmetric encryption key from a password string.
Top
Fields
  NameDescription
Public fieldStatic memberHMAC256ByteCount
The size of an HMAC256 in bytes.
Public fieldStatic memberHMAC512ByteCount
The size of an HMAC512 in bytes.
Public fieldStatic memberMD5ByteSize
The number of bytes in a MD5 hash.
Public fieldStatic memberSHA1ByteSize
The number of bytes in a SHA1 hash.
Public fieldStatic memberSHA256ByteSize
The number of bytes in a SHA256 hash.
Public fieldStatic memberSHA512ByteSize
The number of bytes in a SHA512 hash.
Top
See Also