Net Encryption Library
Encryption Class Members
Properties  Methods 


KellermanSoftware.NetEncryptionLibrary Namespace : Encryption Class

The following tables list the members exposed by Encryption.

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public Property The bit length for HAVAL. The default is 128. Valid values are 128, 160, 192, 224, and 256  
Public Property Support CBC or ECB Cipher Modes for Rijandael or Twofish. The default is CBC (reccommended)  
Public Property Set the encoding method used for converting unicode strings into bytes. The default is UTF8  
Public Property GHashStandard. Default is 5  
Public Property Initialization Vector for Encryption  
Public Property Set the padding mode used, the default is ISO10126  
Public Property The number of passes for HAVAL. The default is 3. Valid values are 3, 4, 5  
Public Property The KeySize for RSA. Valid Sizes: 1024, 2048, 4096. The default is 1024  
Public Property Salt for Hashing and Encryption  
Public Property By default, when encrypting to a string the prefix @KS@ will be written, indicating that the string is encrypted. If turnned off, the IsStringEncrypted or the IsFileEncrypted method will no longer be 100% accurate. In this case if there are non-base64 characters it will be considered encrypted.  
Top
Public Methods
 NameDescription
Public Method Encode bytes to a hex encoded string  
Public Method Encode bytes to a quoted printable string  
Public Method Compress the passed bytes using the specified compression type  
Public Method Compress a file using the specified compression type  
Public Method Compress a stream using the specified compression type  
Public Method Returns true if the CRC is equal for two local files  
Public Method Creates a timed one time password based on the passed key for the valid number of seconds.  
Public Method Decode the passed Base32 encoded string as bytes  
Public Method Decode a Base58 Encoded string with no checksum into bytes  
Public Method Decode a Base58 Encoded string with no checksum into bytes  
Public Method Decode a string that is Base64 encoded  
Public Method Decompress the passed bytes using the specified compression type  
Public Method Decompress a file using the specified compression type  
Public Method Decompress a stream using the specified compression type  
Public Method Decrypt bytes using the selected Decryption provider  
Public MethodOverloaded.  Decrypt a text or binary file using the selected Decryption provider  
Public Method Decrypt the memory stream using the selected Decryption provider  
Public Method Decrypt a stream using the selected Decryption provider  
Public Method Decrypt a base 64 encoded string  
Public Method Encode the passed bytes as a Base32 Encoded String  
Public Method Encode the passed bytes as a Base58 Encoded string with no checksum  
Public Method Encode the passed bytes as a Base58 Encoded string with no checksum  
Public Method Encode bytes with Base64  
Public Method Encrypt bytes using the selected encryption provider  
Public MethodOverloaded.  Encrypt a text or binary file using the selected encryption provider  
Public Method Encrypt the memory stream using the selected encryption provider  
Public Method Encrypt a stream using the selected encryption provider  
Public Method Encrypt and return a base64 encoded string  
Public MethodOverloaded.  Generate a cryptographically strong random string to use as a key, salt, or initialization vector  
Public Method Create public and private keys  
Public Method Generate a six digit PIN based on a string. Uses CRC32 as a basis. Always generates 6 digits.  
Public Method Get an Adler 32 Checksum for a file  
Public Method Gets adler32 checksum for a file in hexadecimal.  
Public Method Get a 32 bit Cyclic Redundency Check for a file  
Public Method Gets the CRC32 checksum in hexadecimal for the passed in file.  
Public Method Get the Adler 32 Checksum for a stream  
Public Method Gets adler32 checksum in hexadecimal for the passed stream.  
Public Method Get a 32 bit Cyclic Redundency Check for a stream  
Public Method Get the Adler 32 Checksum for a string  
Public Method Get the CRC 32 for a string  
Public Method Returns the maximum symmetric algorithm key size in bits.  
Public MethodOverloaded.  Deprecated. Hashes the bytes.  
Public MethodOverloaded.  Return a Base64 encoded one way hash of a series of bytes  
Public MethodOverloaded.  Hashes the bytes and returns the result in hexadecimal.  
Public MethodOverloaded.  Deprecated. Use HashFileBase64 instead. There is also a new method HashFileHex  
Public MethodOverloaded.  Hash a file using the specified hash provider  
Public MethodOverloaded.  Hashes the file and returns the result in hexadecimal.  
Public MethodOverloaded.  Deprecated. Use HashStringBase64 instead. There is also a new method HashStringHex.  
Public MethodOverloaded.  Return a Base64 encoded one way hash of a string  
Public MethodOverloaded.  Hashes the string and returns the results in hexadecimal.  
Public Method Convert a hexadecimal string to a byte array.  
Public Method Returns true if a file is Encrypted by the Kellerman Software Encryption Library  
Public Method Returns true if a string is encrypted with the Kellerman Encryption Library  
Public MethodOverloaded.  Securely erase all files and sub directories within a directory  
Public MethodOverloaded.  Securely delete a file by overwriting with random bytes, renaming and then deleting it  
Public Method Decode a uuEncoded string  
Public Method Encode a string using uuEncode  
Public Method Checks the status of a certificate, whether it is: expired, untrusted, or trusted  
Public Method Verify that the timed one time password is still valid  
Top
See Also

Reference

Encryption Class
KellermanSoftware.NetEncryptionLibrary Namespace