|
That depends on how the reader is connected to your system, and how it sends the information when it reads the barcode. As I said before, you need to read the documentation as we have no information on the device that you are using.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi All,
[CODE]
// Signature part R:
0B9E 77E7 6D7E EA87 4D6D F987 AE3C E6D7 5BCD FEFB.
// Signature part S:
65A2 17FF 1596 2356 E3BA 4692 9478 AC79 D801 B337.
// Signature part R:
8135 C560 7FC0 6F82 B886 FAEF 5158 C18C 2D79 17AB.
// Signature part S:
28A8 4825 B530 DE20 C571 9CDB 76D0 9489 EB7D 3149.
// BIG p
FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
// BIG q
962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
// BIG g
6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
// BIG y
4436 34C0 5D1C B536 8026 142B 3D6D 09DA D3B1 CD2C F4E9 B7AD B618 5466 51FC 2D54 8EB1 2394 30F4 323F 7240 E55A D44C 380B 13FB 7978 B825 0B44 2BD5 0ED3 A58B 9E5F.
[CODE]
Above signature in the bold must be validated using below public key :
[CODE]
// BIG p
FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
// BIG q
962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
// BIG g
6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
// BIG y
4436 34C0 5D1C B536 8026 142B 3D6D 09DA D3B1 CD2C F4E9 B7AD B618 5466 51FC 2D54 8EB1 2394 30F4 323F 7240 E55A D44C 380B 13FB 7978 B825 0B44 2BD5 0ED3 A58B 9E5F.
[CODE]
In the above BIG y is the public key and we must validate the signature with this public key(this signature will be different each time we sign).
Can any one please suggest
|
|
|
|
|
Hey,
We found the solution i.e., we were trying to sign unencrypted file but we have to sign encrypted file.
Now we are able to validate our signature with our own public key.
|
|
|
|
|
Hi,
Please any one suggest, while signing with the same key I'm getting different signature each time,I don't whether it is right?
Thanks in advance
|
|
|
|
|
Why have you created a new CodeProject id just to ask the same question?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have a key pair(my own public key and private key).
I have signed my data with my private key. when i am trying to sign same data multiple times with private key, its generarting different signatures like
My Private Key :
// BIG p
FCA6 82CE 8E12 CABA 26EF CCF7 110E 526D B078 B05E DECB CD1E B4A2 08F3 AE16 17AE 01F3 5B91 A47E 6DF6 3413 C5E1 2ED0 899B CD13 2ACD 50D9 9151 BDC4 3EE7 3759 2E17.
// BIG q
962E DDCC 369C BA8E BB26 0EE6 B6A1 26D9 346E 38C5.
// BIG g
6784 71B2 7A9C F44E E91A 49C5 147D B1A9 AAF2 44F0 5A43 4D64 8693 1D2D 1427 1B9E 3503 0B71 FD73 DA17 9069 B32E 2935 630E 1C20 6235 4D0D A20A 6C41 6E50 BE79 4CA4.
// BIG x
06CE 2BF2 3F33 FDCD 3F22 1301 4F56 1152 69F6 FA4D.
In the above it uses the
// BIG x
06CE 2BF2 3F33 FDCD 3F22 1301 4F56 1152 69F6 FA4D.
parameter as private key to sign.
Sign File when i have signed for the first time :
493C F96C F7DA D6A5 75A3 BC4C 4F30 50A8 6C48 B213.
3EDB 39C8 3711 3E68 13F0 C14D 1264 D189 4B6F 014E.
Sign File when i have signed for the second time :
764E 5BC4 C7F7 B8BC 1A25 D4F3 A565 FCAE 47D9 8BC9.
29EF 30C4 6483 904D 9A6B 53A1 4550 AD5B A71C 33E5.
Thanks in advance.
|
|
|
|
|
Hey,
We found the solution. While signing same data multiple times with the same key will produce different signatures.
|
|
|
|
|
Hi All,
I'm getting different signature for same data while signing with the same key multiple times.
Can any one suggest whether it is right?
Thanks in advance.
|
|
|
|
|
syam071 wrote: Can any one suggest whether it is right? What is right, what signing? Please provide sufficient information for people to understand what your problem is, maybe a short extract of the failing code would help.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am coding in Java 6 on a computer with Windows XP.
PrintServiceLookup.lookupPrintServices works fine and returns an array with all printers in my network I have installed.
PrintServiceLookup.lookupMultiDocPrintServices, however returns an empty array and I have seen a couple of other ppl (googled) not getting anything more.
Does anyone know if Java (6) for Windows XP is shipped with support for MultiDocPrintServices?
modified 6-Dec-12 9:20am.
|
|
|
|
|
Hi folks,
I am new to Java and fairly new to programming in general. I have spent a couple of years in MS Access/VB.
In my quest to broaden my skill set I have started to play with Java. Honestly it seems to require a lot of code and classes to do the littlest thing.
My issue is this I have a mysql db with a customer table. I want by combobox to store the id and customer name but only display the customer name in the combobox.
When the user selects a customer I want the id to query the jtable and display the customer info.
I have this working except the part that stores id and name in the combobox.
If someone could provide an example it would be greatly appreciated.
Thanks!
|
|
|
|
|
Here is a nice sample[^] in the Java Tutorials website.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I understand the example with animals and the idea of an index (i looked at this from one of your other posts) what I am having hard time grasping is that my index wont be 0-4 it could be a range of ids ie (100,1,201,2304, ect)
So how do I know when the they select pig that it corresponds to id 2304 in my customers list.
Thanks so much for all your help.
|
|
|
|
|
Chrisloys wrote: So how do I know when the they select pig that it corresponds to id 2304 in my customers list. You omitted to mention this in your original post. Are you saying that your users select a customer by using some random number out of a list of hundreds? I would suggest a rethink of your design here. Of course, you could always provide some sort of cross reference between names and numbers; without knowing more about what you are actually trying to do it is difficult to suggest much more.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
No the numbers are not random per say they are developed by mysql as they are autonumber/primarykey. So if we had two customers with same name they would have two differnt ids. I need to reference this id from the combobox to correctly populate the table.
So my table will look like this
id customername address city
1 customer1 123 this st atown
3 customer2 5 that st btown
4 customer 3 989 overhere st ctown
2 customer 4 9999 overthere st dtown
6 customer 5 234 thisstreet st e town
So when the user selects customer2 from the combobox it will in turn say customer2's id is 3.
3 will then be used to query the customer information and display this in the table.
I hope iam explaining this correctly... this was very common in ms access but all i had todo was hide the column with the id so it only displayed the customer name. When a new customer was selected it would take the hidden id column value to populate a table. It was extremely easy.
|
|
|
|
|
So how does a user find the entry for Smith J. if there is more than one of that name?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Well we would then look at the corresponding customer information to make sure we had the correct info. Sorry this really isnt a real life situation as we shouldnt have two customers with the same name.
|
|
|
|
|
I think your question has more to do with your design and how you manage your customer lists, than with how to use a combo box.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
So how would you design? Very odd this is like DB101. If you had a student table with five students named john smith you identify the difference by there id.
So are you saying that if I want to query a table based on the selection I have to have customer name referenced in other tables??? No that cant be right I look at referential db's most of the day they are linked on ids not names??
Someone out there must have run into this along the way.
|
|
|
|
|
Chrisloys wrote: So how would you design? Well, without spending a lot of time thinking about it I am not sure.
Chrisloys wrote: Someone out there must have run into this along the way. Quite possibly, but I get the feeling this has very little to do with Java.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
the java part is the jcombobox referencing the id of customer name selected.
If anyone could shed some light it would be most appreciated.
Thanks for all your responses.
|
|
|
|
|
Well looking at the documentation[^] it is clear that the items in the combobox can be objects, so you just need a class of object that contains the name and the id of the customer. The object's ToString() method should return the name which (I guess) will appear in the combo box.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
pls how do i solve a=1/2bh
v=ut+1/2gt
s=a+(n-1)d using java programming
|
|
|
|
|
What is the issue you are facing ? Did you even try to write any code ? Please share your code (attempt) with us.
Apurv
If Java had true garbage collection, most programs would delete themselves upon execution.
|
|
|
|
|
First you define your variables (a, v, etc), then you write the code to do the calculations. Which part are you having difficulty with?
One of these days I'm going to think of a really clever signature.
|
|
|
|