Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crypto Key Byte Array Representations
Message
From
25/05/2004 10:08:47
 
 
To
25/05/2004 09:30:06
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00906872
Message ID:
00906900
Views:
7
Ok, I'll try that. Thanks John

>Here is what i ended up using
>
>// convert from binary to Base64
>Source = System.Convert.ToBase64String(bytOut, 0, i);
>
>// convert from Base64 to binary
>byte[] bytIn = System.Convert.FromBase64String(Source);
>
>
>>In using some of the Cryptography routines I am trying to use the GenerateKey() and GenerateIV() methods to allow for creation of Keys and IVs for the encryption process. When this is done, it is needful to store the generated keys in a string representation that can later be reconverted to the byte arrays used for the encryption process.
>>
>>I am having trouble finding the appropriate conversion from byte array to string for storage. I've used several of the encoding methods to convert to a string representation but reconverting to the byte array does not yield the original bytes which causes the encryption process to fail ( catastrophically :-) ).
>>
>>What would be the proper way to convert the generated byte arrays to string representations for storage, then the method to reconvert the string representation back to byte array for encrption processing?
>>
>>Thanks,
>>Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform