Click or drag to resize

Cryptography Class

Provides lightweight cryptographic services for Inner Drive Technology applications.
Inheritance Hierarchy
SystemObject
  InnerDrive.CoreCryptography

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.0.8475.0
Syntax
C#
public static class Cryptography

The Cryptography type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAddSalt Adds salt to a plaintext string to help prevent certain kinds of attacks against symmetric ciphers.
Public methodStatic memberDecrypt(String, String) Decrypts a ciphertext using the default symmetric algorithm but no salt.
Public methodStatic memberDecrypt(String, String, Boolean) Decrypts a ciphertext using the default symmetric algorithm.
Public methodStatic memberDecrypt(String, String, SymmetricAlgorithm) Decrypts a ciphertext using a specific symmetric algorithm.
Public methodStatic memberDecrypt(String, String, String) Decrypts a ciphertext using a specific symmetric algorithm.
Public methodStatic memberEncrypt(String, String) Encrypts a string using the default symmetrical encryption but without salt.
Public methodStatic memberEncrypt(String, String, Boolean) Encrypts a string using the default symmetrical encryption.
Public methodStatic memberEncrypt(String, String, SymmetricAlgorithm) Encrypts a string using a specified symmetrical encryption algorithm.
Public methodStatic memberEncrypt(String, String, String) Encrypts a string using a specified symmetrical encryption algorithm.
Public methodStatic memberGetHash(String) Creates a hash of a string.
Public methodStatic memberGetHash(String, HashAlgorithm) Creates a hash of a string using a specified hashing algorithm.
Public methodStatic memberGetRandomKey Creates a random key of random length.
Public methodStatic memberGetRandomPassword Creates a random password of a specified length. The password will be usable with Microsoft Windows security.
Public methodStatic memberRemoveSalt Removes salt from a decrypted string.
Top
Fields
 NameDescription
Public fieldStatic memberMaxKeyLengthProvides the upper length limit, in bytes, for keys.
Public fieldStatic memberMaxPlaintextLengthProvides the upper length limit, in bytes, for plaintext strings.
Public fieldStatic memberMinKeyLengthProvides the lower length limit, in bytes, for keys.
Top
Remarks
Adapted from work by Frank Fong of the Code Project. Also draws from Writing Secure Code by Michael Howard.

The implementation of the encryption and decryption methods is not guaranteed to remain the same between version releases of the IDEA™ framework. Consequently, a future implementation may break a previous implementation and result in all of your encrypted data being lost. It's important, therefore, to use strict version controls if you have existing encrypted data.

This implementation has not changed since InnerDrive.Framework assembly version 0.98.2278.21712, 28 March 2006. Data encrypted with previous versions of the assembly are not guaranteed to be compatible. Data encrypted with all subsequent versions is compatible.

The implementation previously changed with version 0.98.1152.0 in February 2003.

See Also