KGy SOFT

ByteArrayExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the byte[] type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesByteArrayExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class ByteArrayExtensions

The ByteArrayExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCompress
Compresses the provided bytes and returns the compressed data. Compressed data can be decompressed by Decompress method.
Public methodStatic memberDecompress
Decompresses the provided bytes that was compressed by Compress method.
Public methodStatic memberDecrypt(Byte, Byte, Byte)
Decrypts a byte array by the RijndaelManaged algorithm using the provided key and initialization vector.
Public methodStatic memberDecrypt(Byte, String, String)
Decrypts a byte array by the RijndaelManaged algorithm using the provided password and salt.
Public methodStatic memberDecrypt(Byte, SymmetricAlgorithm, Byte, Byte)
Decrypts a byte array by the provided symmetric algorithm, key and initialization vector.
Public methodStatic memberDecrypt(Byte, SymmetricAlgorithm, String, String)
Decrypts a byte array by the provided symmetric algorithm, password and salt.
Public methodStatic memberEncrypt(Byte, Byte, Byte)
Encrypts a byte array by the RijndaelManaged algorithm using a randomly generated key and initialization vector, which are returned in key and iv parameters, respectively.
Public methodStatic memberEncrypt(Byte, String, String)
Encrypts a byte array by the RijndaelManaged algorithm using the provided password and salt.
Public methodStatic memberEncrypt(Byte, SymmetricAlgorithm, Byte, Byte)
Encrypts a byte array by the provided symmetric algorithm, key and initialization vector.
Public methodStatic memberEncrypt(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.
Public methodStatic memberEncrypt(Byte, SymmetricAlgorithm, String, String)
Encrypts a byte array by the provided symmetric algorithm, password and salt.
Public methodStatic memberToBase64String
Converts the given bytes into a Base64 encoded string.
Public methodStatic memberToDecimalValuesString(Byte, String)
Converts the byte array to string of decimal values.
Public methodStatic memberToDecimalValuesString(Byte, String, Int32, Int32, Char, Boolean)
Converts the byte array to string of decimal values.
Public methodStatic memberToHexValuesString(Byte, String)
Converts the byte array to string of hexadecimal values.
Public methodStatic memberToHexValuesString(Byte, String, Int32, Int32, Char, Boolean)
Converts the byte array to string of hexadecimal values.
Top
See Also

Reference