Ejemplo n.º 1
0
 /// <summary>
 /// To encoded Base16 string array
 /// </summary>
 /// <param name="bits">The bit array containing the sequence of bytes to encode.</param>
 /// <returns>A string representation of bytes in hexadecimal / Base16 format.</returns>
 public static string ToBase16String(BitArray bits)
 {
     return(ToBase16String(BinaryTools.BitsToBytes(bits)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Get the bytes from a Base32 encoded string.
 /// </summary>
 /// <param name="base32text">A Base32 encoded string to decode into a byte array.</param>
 /// <returns>An array of bytes decoded from the hexadecimal / Base16 encoded string.</returns>
 public static byte[] GetBytes(string base32text)
 {
     return(BinaryTools.BitsToBytes(GetBits(base32text)));
 }