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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna KishorePosted Mar 20, 2006, 10:59 PM
I found an other way...
(byte[])Registry.getvalue("str");
Thamks again...
regards
Binu SubiPosted Mar 20, 2006, 3:05 PM
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!
Guest UserPosted Mar 18, 2006, 11:52 AM