473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Converting StrongName to String

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?
Jul 21 '05 #1
2 1224
System.Text.Encoding.AscII.GetString(YourByteArray )

Bryan
sp**@ahwayside.com

"Doug" <dn******@dtgnet.com> wrote in message
news:ff**************************@posting.google.c om...
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?

Jul 21 '05 #2
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.
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Doug | last post by:
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,...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
1
by: SSTORY | last post by:
I need to strongname my assembly but it references shwdocvw which isn't strong named. What can I do? In another non related note... I am now using Thunderbird for newsgroups. It doesn't seem...
3
by: Wallace | last post by:
Hai, Can anyone tell how to convert an object into string? Please help me.... urgent.. Thanx in advance...
4
by: gg9h0st | last post by:
i'm a newbie studying php. i was into array part on tutorial and it says i'll get an array having keys that from member variable's name by converting an object to array. i guessed "i can...
9
by: Terry | last post by:
I am converting (attempting) some vb6 code that makes vast use of interfaces. One of the major uses is to be able to split out Read-only access to an obect. Let me give you a simple (contrived)...
3
by: nvx | last post by:
Hi, I'm looking for a simple way to convert a Double to a String exactly the .ToString() does, except these two differences: - the number of decimals is given (rounding is applied if necessary),...
2
by: CoreyWhite | last post by:
Problem: You have numbers in string format, but you need to convert them to a numeric type, such as an int or float. Solution: You can do this with the standard library functions. The...
0
by: s14m27 | last post by:
Hi.. Is it possible to place an Assembly in GAC without giving strongname? Thank You...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.