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.