/ Assembly List / LJCNetCommon / LJCCryptography

Namespace - LJCNetCommon


Syntax

C#
public class LJCCryptography

Provides methods to encrypt and decrypt data in memory.

Public Methods
#ctor Initializes an object instance.
Decrypt Returns a decrypted string from a cipher byte array. (E)
DecryptBytes Returns a decrypted byte array from a cipher byte array.
Encrypt Returns an encrypted byte array from a byte array.
Encrypt Returns an encrypted byte array from a string value. (E)
GenerateIV Generates a random initialization vector based on the encryption type.
GenerateKey Generates a random encryption key based on the encryption type.
IsValidKeySize Returns true if the key size is valid otherwise returns false.
8 Methods

Properties
KeySize Gets or sets the secret key size in bits.
LegalKeySizes Gets the supported key sizes.
Type Gets or sets the encryption type.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.