ByteArrayExtensions Class
Provides extension methods for the
byte[] type.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static class ByteArrayExtensions
<ExtensionAttribute>
Public NotInheritable Class ByteArrayExtensions
[ExtensionAttribute]
public ref class ByteArrayExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type ByteArrayExtensions = class end
- Inheritance
- Object ByteArrayExtensions
Compress |
Compresses the provided bytes and returns the compressed data.
Compressed data can be decompressed by Decompress method.
|
Decompress |
Decompresses the provided bytes that was compressed by Compress method.
|
Decrypt(Byte, Byte, Byte) |
Decrypts a byte array by the Aes algorithm using the provided key and initialization vector.
|
Decrypt(Byte, String, String) |
Decrypts a byte array by the Aes algorithm using the provided password and salt.
|
Decrypt(Byte, SymmetricAlgorithm, Byte, Byte) |
Decrypts a byte array by the provided symmetric algorithm, key and initialization vector.
|
Decrypt(Byte, SymmetricAlgorithm, String, String) |
Decrypts a byte array by the provided symmetric algorithm, password and salt.
|
Encrypt(Byte, Byte, Byte) |
Encrypts a byte array by the Aes algorithm using a randomly generated key and initialization vector, which are
returned in key and iv parameters, respectively.
|
Encrypt(Byte, String, String) |
Encrypts a byte array by the Aes algorithm using the provided password and salt.
|
Encrypt(Byte, SymmetricAlgorithm, Byte, Byte) |
Encrypts a byte array by the provided symmetric algorithm, key and initialization vector.
|
Encrypt(Byte, SymmetricAlgorithm, Byte, Byte) |
Encrypts a byte array by the provided symmetric algorithm, using a randomly generated key and initialization vector, which are
returned in key and iv parameters, respectively.
|
Encrypt(Byte, SymmetricAlgorithm, String, String) |
Encrypts a byte array by the provided symmetric algorithm, password and salt.
|
ToBase64String |
Converts the given bytes into a Base64 encoded string.
|
ToDecimalValuesString(Byte, String) |
Converts the byte array to string of decimal values.
|
ToDecimalValuesString(Byte, String, Int32, Int32, Char, Boolean) |
Converts the byte array to string of decimal values.
|
ToHexValuesString(Byte, String) |
Converts the byte array to string of hexadecimal values.
|
ToHexValuesString(Byte, String, Int32, Int32, Char, Boolean) |
Converts the byte array to string of hexadecimal values.
|