Hello,
Iam encrypting my data(of byte[] type) and storing in registry.
At the time of retrieving my data I am obtaining in Object type.How to convert back to byte[]...So that I can Decrypt back.
Thank you.
Regards
Kolluru.
Hello,
Iam encrypting my data(of byte[] type) and storing in registry.
At the time of retrieving my data I am obtaining in Object type.How to convert back to byte[]...So that I can Decrypt back.
Thank you.
Regards
Kolluru.
Know the answer? Post it. Somebody with the same question will find it here.
Guest User3 pointsPosted Mar 18, 2006, 6:52 AM EST
Binu Subi68 pointsPosted Mar 20, 2006, 10:05 AM EST
private byte[] ConvertToByteArray(string sInput)
{
char[] arrChar;
arrChar = sInput.ToCharArray();
byte[] arrByte = new byte[arrChar.Length];
for (int i= 0; i < arrByte.Length; i++){
arrByte[i] = Convert.ToByte(arrChar[i]);
}
return (arrByte);
}
Cheers!
Krishna Kishore36 pointsPosted Mar 20, 2006, 5:59 PM EST
I found an other way...
(byte[])Registry.getvalue("str");
Thamks again...
regards