Converting StrongName to String

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

I am reading the Public Key attribute from an assembly which is read
into a byte array. I need to get this value into a string but am
having no luck. I've tried variations on the Encoding object, etc but
to no avail. Is there some way to accomplish this?
 
System.Text.Encoding.AscII.GetString(YourByteArray)

Bryan
(e-mail address removed)
 
Doing that gets me this value:

$$RSA1) m(*2/2vv Td @Yf:o'pY[@Vy%%
zf'DzxzQ/QKJ#W?weV>P}Ls#:jqE35z^Da}&/x'D5kK>}]>IGBk
9C~q/.(j1!CcUXcs0

when I'm looking for the 16 length value that shows up in the Public
Key Token column in C:\Winnt\Assembly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top