hi there Vikram,
/p>
In this code you used Encoding.Unicode to get the bytes.
I tried to use Encoding.ASCII and UTF8, both gives the same result (ASCII and UTF8). Only Unicode gives different result.
/p>
Take a look here
/p>
? convert.ToBase64String( system.Text.Encoding.ASCII.GetBytes( "test string here" ) )
"dGVzdCBzdHJpbmcgaGVyZQ=="
/p>
? convert.ToBase64String( system.Text.Encoding.utf8.GetBytes( "test string here" ) )
"dGVzdCBzdHJpbmcgaGVyZQ=="
/p>
? convert.ToBase64String( system.Text.Encoding.unicode.GetBytes( "test string here" ) )
"dABlAHMAdAAgAHMAdAByAGkAbgBnACAAaABlAHIAZQA="
/p>
Can you give me an explanation for this ?
/p>
Thanks and kind regards,
/p>
SHC
/p>
p.s. I hope you can email me if you any answer :)
/p>