End Google Ads 201810 - BS.net 01 -->
suppose I have string x="CodeProjectWillNotAnswer"
I want to put it in Array Such that each elemet in the Array is 4 bit only
so each character in the string will be represented in 2 element Array.
example: C in Hexa decimal=43 in binary (0100 0011)
so the Array will be
Arr[0]=0x3;
Arr[1]=0x4;
this my sample code but for 1 byte in the elemet not 4 bit
string x="CodeProjectWillNotAnswer"
byte[] m_Secret_key = new byte[x.Length];
for (int i = 0; i < x.Length; i++)
m_Secret_key[i] = (byte)x[i];
Thanks for Reply
Mohammed Ibrahim
مواقع النشر (المفضلة)