Have got a slight problem.
what I do is encript a string and then produce a UTF8 value. To then decript was planning on taking the UTF8 value and converting it into a byte array to then toss it in for decription.
The bit array takes the encripted value and breaks it up without a problem
The issue is that when I get the UTF8 value and attempt to put it back into a bit array it will not accept any value higher then 127 (ASCII limit). It then procedes to skip over that value and continue setting up the array.
Anyone got any ideas on this one??
--> code on how I bring the value into UTF8 format -->
'write plaintext bytes to crypto stream
Dim plainbytes() As Byte = Encoding.UTF8.GetBytes(m_text)
cs.Write(plainbytes, 0, plainbytes.Length)
cs.Close()
cipherbytes = ms.ToArray()
ms.Close()
'display ciphertext as text string
m_cipertext = Encoding.UTF8.GetString(cipherbytes)
what I do is encript a string and then produce a UTF8 value. To then decript was planning on taking the UTF8 value and converting it into a byte array to then toss it in for decription.
The bit array takes the encripted value and breaks it up without a problem
The issue is that when I get the UTF8 value and attempt to put it back into a bit array it will not accept any value higher then 127 (ASCII limit). It then procedes to skip over that value and continue setting up the array.
Anyone got any ideas on this one??
--> code on how I bring the value into UTF8 format -->
'write plaintext bytes to crypto stream
Dim plainbytes() As Byte = Encoding.UTF8.GetBytes(m_text)
cs.Write(plainbytes, 0, plainbytes.Length)
cs.Close()
cipherbytes = ms.ToArray()
ms.Close()
'display ciphertext as text string
m_cipertext = Encoding.UTF8.GetString(cipherbytes)