UtilEncryption Class

Contains cryptography related utilities.

Definition

Namespace: DevCase.Core.Security.Cryptography.Encryption
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class UtilEncryption
Inheritance
Object    UtilEncryption

Methods

AesDecrypt Decrypts a string using AES algorithm.
AesEncrypt Encrypts a string using AES algorithm.
AtbashDecrypt Decrypts a string using Atbash substitution cipher.
AtbashEncrypt Encrypts a string using Atbash substitution cipher.
Base36Decode Decodes a string using Base36 codification.
Base36Encode Encodes a number using Base36 codification.
Base64Decode Decodes a string using Base64 codification.
Base64DecodeAsBitmap Decodes a string encoded in Base64 to a Bitmap.
Base64DecodeAsImage Decodes a string encoded in Base64 to a Image.
Base64Encode(Image) Encodes a image using Base64 codification.
Base64Encode(String, Encoding) Encodes a string using Base64 codification.
BinaryDecode Decodes a string using Binary codification.
BinaryEncode Encodes a string using Binary codification.
CaesarDecrypt Decrypts a string using Caesar's substitution cipher.
CaesarEncrypt Encrypts a string using Caesar's substitution cipher.
DecryptFile(SymmetricAlgorithm, FileInfo, FileInfo, String) Decrypts a file using the specified SymmetricAlgorithm and writes the decrypted data to a destination file.
DecryptFile(SymmetricAlgorithm, String, String, String) Decrypts a file using the specified SymmetricAlgorithm and writes the decrypted data to a destination file.
DecryptFileT(FileInfo, FileInfo, String) Decrypts a file using the specified SymmetricAlgorithm and writes the decrypted data to a destination file.
DecryptFileT(String, String, String) Decrypts a file using the specified SymmetricAlgorithm and writes the decrypted data to a destination file.
DecryptFileAsString(SymmetricAlgorithm, FileInfo, String) Decrypts a file using the specified SymmetricAlgorithm and returns the decrypted data as a String.

This method do not modify the contents of the file.

DecryptFileAsString(SymmetricAlgorithm, String, String) Decrypts a file using the specified SymmetricAlgorithm and returns the decrypted data as a String.

This method do not modify the contents of the file.

DecryptFileAsStringT(FileInfo, String) Decrypts a file using the specified SymmetricAlgorithm and returns the decrypted data as a String.

This method do not modify the contents of the file.

DecryptFileAsStringT(String, String) Decrypts a file using the specified SymmetricAlgorithm and returns the decrypted data as a String.

This method do not modify the contents of the file.

EncryptFile(SymmetricAlgorithm, FileInfo, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to the original file.
EncryptFile(SymmetricAlgorithm, String, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to the original file.
EncryptFile(SymmetricAlgorithm, FileInfo, FileInfo, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to a destination file.
EncryptFile(SymmetricAlgorithm, String, String, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to a destination file.
EncryptFileT(FileInfo, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to the original file.
EncryptFileT(String, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to the original file.
EncryptFileT(FileInfo, FileInfo, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to a destination file.
EncryptFileT(String, String, String) Encrypts a file using the specified SymmetricAlgorithm and writes the encrypted data to a destination file.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
HexadecimalDecode Decodes a string using Hexadecimal codification.
HexadecimalEncode Encodes a string using Hexadecimal codification.
IsBase64Encoded Determines whether the source string has been Base64 encoded.
MorseCodeDecrypt Converts the input Morse code text to human readable text.

Morse Code Character Table: https://www.electronics-notes.com/articles/ham_radio/morse_code/characters-table-chart.php

MorseCodeEncrypt Converts the input text to Morse code.

Note: characters that has not an official representation in Morse Code will be ignored.

Morse Code Character Table: https://www.electronics-notes.com/articles/ham_radio/morse_code/characters-table-chart.php

PolymorphicStairsDecrypt(Byte, Byte, UInt32) Decrypts data using Polymorphic Stairs algorithm.
PolymorphicStairsDecrypt(String, String, Encoding, UInt32) Decrypts a string using Polymorphic Stairs algorithm.
PolymorphicStairsEncrypt(Byte, Byte, UInt32) Encrypts data using Polymorphic Stairs algorithm.
PolymorphicStairsEncrypt(String, String, Encoding, UInt32) Encrypts a string using Polymorphic Stairs algorithm.
StairsDeCrypt(Byte, Byte) Decrypts data using Polymorphic Stairs algorithm.
StairsDeCrypt(String, String, Encoding) Decrypts a string using Stairs algorithm.
StairsEncrypt(Byte, Byte) Encrypts data using Stairs algorithm.
StairsEncrypt(String, String, Encoding) Encrypts a string using Stairs algorithm.
SymmetricDecryptT Decrypts a string using the specified SymmetricAlgorithm.
SymmetricEncryptT Encrypts a string using the specified SymmetricAlgorithm.
XorEncryptOrDecrypt Encrypts or decrypts a string using XOR algorithm.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also