EldoS | Feel safer!

Software components for data protection, secure storage and transfer

About SerialNumber

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#3336
Posted: 07/11/2007 07:49:44
by dane dai (Basic support level)
Joined: 07/07/2007
Posts: 9

Sorry about my English
When I create a Certificate I use this code to set SerialNumber value,
[code]
Cert.SerialNumber = SBUtils.Unit.BytesOfString("12345678");
[code]
When I see the Certificate ,the SerialNumber is "3132333435363738",but I see other Certificate by other tool ,the SerialNumber like "‎27 d3 7b 96 ba fa 8b 43 a0 51 c8 bd 91 25 ff c3" ,I want to create SerialNumber like this,How should I do?
#3338
Posted: 07/11/2007 08:06:24
by Eugene Mayevski (EldoS Corp.)

As said, the serial is the sequence of bytes. What the other tool shows you is the formatted representation of some other sequence of bytes. So all you need to do is format your "3132333435363738" to get "31 32 33 34 35 36 37 38"


Sincerely yours
Eugene Mayevski
#3341
Posted: 07/11/2007 08:29:56
by dane dai (Basic support level)
Joined: 07/07/2007
Posts: 9

Sorry,I do not understand.
I want to get SerialNumber like "27 d3 7b 96 ba fa 8b 43 a0 51 c8 bd ..." not like "31 32 33 34 35 36 37 38"
#3343
Posted: 07/11/2007 08:31:31
by dane dai (Basic support level)
Joined: 07/07/2007
Posts: 9

You can give me an example?thanks!~~~~
#3344
Posted: 07/11/2007 08:36:33
by Eugene Mayevski (EldoS Corp.)

And what is the difference between the numbers you posted? Is it the length? Then you need to call something like SBUtils.Unit.BytesOfString("very long serial number #blah-blah-blah");


Sincerely yours
Eugene Mayevski
#3346
Posted: 07/11/2007 09:02:13
by dane dai (Basic support level)
Joined: 07/07/2007
Posts: 9

I want to get serial number of hex like "27 d3 7b 96 ba" ,what should i do?
#3347
Posted: 07/11/2007 10:23:36
by Eugene Mayevski (EldoS Corp.)

Your question makes no sense, sorry. Please try to re-phrase it.


Sincerely yours
Eugene Mayevski
#3348
Posted: 07/11/2007 13:28:33
by Charles Poston (Standard support level)
Joined: 06/12/2006
Posts: 15

The numbers you are seeing are the hex values of the characters. In this amazing thing called the computer all characters are really just numbers. Numbers can be represented in any base so "31" is hex (base 16) for "49" (base 10) which the value of the character "1". This is basic knowledge - don't bother the support people here to teach you about the way computers work. Go read a book or pay a teacher!
#3361
Posted: 07/12/2007 21:07:24
by dane dai (Basic support level)
Joined: 07/07/2007
Posts: 9

Sorry!
I see.
#10238
Posted: 05/30/2009 13:20:11
by Thanh Nguyen Trung (Priority Standard support level)
Joined: 09/12/2008
Posts: 73

Hi,

Could you show me the way to convert SerialNumber presented in big number format "48596882133809393208514908104726317360" to byte[] and in reverse way byte[] to big int?

Thanks
Thanh
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 5248 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!