Cipher Class

Provides general use cryptographic functions.

Definition

Namespace: Gemstone.Security.Cryptography
Assembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.128 -- Release Build+bd1c1867941d4700e644c1451bb1298b1b27c8bc
public static class Cipher
Inheritance
Object    Cipher

Remarks

This class exists to simplify usage of basic cryptography functionality.

Properties

SystemAllowsManagedEncryption Gets a flag that determines if system will allow use of managed, i.e., non-FIPS compliant, security algorithms.

Methods

ConfigDecrypt Decrypts a configuration setting in the format of "KeyName:EncodedValue" that was previously encrypted using the Encrypt(String, String, CipherStrength) method using a Aes256 key size.
Decrypt(Byte, String, CipherStrength) Returns a binary array of decrypted data for the given parameters.
Decrypt(String, String, CipherStrength) Returns a decrypted string from a Base64 encoded string of binary encrypted data from the given parameters.
Decrypt(Byte, Byte, Byte, CipherStrength) Returns a binary array of decrypted data for the given parameters.
Decrypt(Stream, Byte, Byte, CipherStrength) Returns a stream of decrypted data for the given parameters.
Decrypt(Byte, Int32, Int32, String, CipherStrength) Returns a binary array of decrypted data for the given parameters.
Decrypt(Byte, Int32, Int32, Byte, Byte, CipherStrength) Returns a binary array of decrypted data for the given parameters.
Decrypt(Stream, Stream, Byte, Byte, CipherStrength, ActionProcessProgressInt64) Decrypts input stream onto output stream for the given parameters.
DecryptFile Creates a decrypted file from source file data.
Encrypt(Byte, String, CipherStrength) Returns a binary array of encrypted data for the given parameters.
Encrypt(String, String, CipherStrength) Returns a Base64 encoded string of the returned binary array of the encrypted data, generated with the given parameters.
Encrypt(Byte, Byte, Byte, CipherStrength) Returns a binary array of encrypted data for the given parameters.
Encrypt(Stream, Byte, Byte, CipherStrength) Returns a stream of encrypted data for the given parameters.
Encrypt(Byte, Int32, Int32, String, CipherStrength) Returns a binary array of encrypted data for the given parameters.
Encrypt(Byte, Int32, Int32, Byte, Byte, CipherStrength) Returns a binary array of encrypted data for the given parameters.
Encrypt(Stream, Stream, Byte, Byte, CipherStrength, ActionProcessProgressInt64) Encrypts input stream onto output stream for the given parameters.
EncryptFile Creates an encrypted file from source file data.
ExportKeyIV Exports a key and initialization vector from the local system key cache.
FlushCache Blocks current thread and waits for any pending save of local system key cache to complete.
GetPasswordHash Gets the Base64 encoded SHA-256 hash of given user password.
ImportKeyIV Imports a key and initialization vector into the local system key cache.
KeyIVExists Determines if a key and initialization vector exists for the given password in the local system key cache.
ReloadCache Manually loads keys into the local system key cache.
VerifyPasswordHash Verifies the given user password against a given hash.

See Also