I like doing it the simple way
string input = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string output = string.Join("",Encoding.UTF8.GetBytes(input).Select(x => x.ToString("x2")));
jdweng
No comments:
Post a Comment