Pete WesternHope

Greenhorn
+ Follow
since Feb 11, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pete WesternHope

JCE
Are we able to ask questions about crypto?
Having been familiar with Java Card crypto, the JCE world is slightly different. The issues of key size, ede vs ded, cbc vs ecb etc seem not to match the Java Card model. Can someone help clarify this for me please?
I want to encipher plain text using triple-DES (i.e. ede). I need a key, but I want to provide only 16 bytes - not usually a problem, internally, the "missing" 'third' key is taken form the 'first' key.
Later I might want to decipher using triple DES (i.e. ded)
I have found a DESedeKeySpec method but I need to init the DES Cipher with a class that implements the Key i/f. I also want to create the DESedeKeySpec with just 16 bytes.
What about decipher, does the same key (if ever I create it) apply for Cipher.MODE_DECRYPT?
Can anyone help?
Is anyone allowed to help? ;-)
Rgds
Pete
20 years ago
Thank you very much indeed!
I had almost arrived at that conclusion myself - but you have been very helpful - thanks.
Pete
20 years ago
I have some third party java that will direct its output to a PrintWriter object for me.
I would like to display the text produced, as it is produced, in a component in my java application.
I don't think there are any real time issues here! I send a command to the program, it processes it and send the output to my PrintWriter.
I just want to capture that output and display it in my app.
ANy help wlecomed!
Thank you
Pete
20 years ago
Thank you for hints, guidance and advice - all much appreciated!
Kind regards
Pete
20 years ago
Can anyone bear to go 'back to basics' for a while?
I would like to get a proper handle on the process of deploying MIDlets onto a mobile phone.
Assume I have my MIDlet code developed. How do I deploy my MIDLet to my phone over the air?
Do I need to set up a web-site?
What sort of hosting facilities do I need?
How do I get the MIDLet down from the web-site?
What else do I need to think about?
Sorry for being very basic but... I want to stop playing in JBuilder and start using in the real world.
Any help, including sample code, URLs of relevant sites, hosting company names (UK based), etc etc would be VERY welcomed
Thank you in anticipation
Regards
Pete
20 years ago
The real question is:
did you get the job?
Or
did they say - we are not too keen on people who tell us our questions don't make sense!!!
20 years ago
Hi
I was trying to find out more about SIM Application Toolkit (SAT) and found it very hard to get much useful info. I did come across a book called "Mobile Application Development with SMS and the SIM Toolkit"
By Scott Guthery and Mary Cronin.
Pub McGraw Hill, ISBN 0-07-137540-6
It gives a good overall view of what can be done. It also mentions several of my former colleagues as pivotal players in the history of smartcards - for that reason alone I would like more people to read the book ;-)
HTH
Pete
20 years ago
Following on from Tom McMorrow's previous enquiry, I have a few extra questions. I do not have any experience of building WAP sites or OTA provisioning, so this may all sound very green - apologies in advance!
I would like to deploy midlets onto a phone from a wap site.
My questions are:
1. How does one choose suitable WAP host? (i.e. where do I look? what criteria are important?)
2. Having chosen a host, how do I find out what steps are necessary to package and deploy the midlet? (Can anyone share experience? or suggest resource URL for further info?)
3. Can anyone recommend a WAP hosting company that makes this process easy?
4. Does it matter who the telecom network company is? (I am operating in the UK) or can the OTA download be performed over any network (with wap) from any wap-host site?
5. Does the midlet need to be downloaded everytime you need it, or does it stay resident in the phone?
Sorry that this is very basic for some of you!
Thank you in anticipation ;-)
Kind regards
Pete
21 years ago
Hi Jawwad
If I were developing this solution I would consider:
Client side -
The platform would be a j2me enabled PDA.
It will need a GPS jacket to get location info.
Wireless connectivity to your web-server.
Of course, a GPS-capable cell-phone could be used.
Server side -
Client link:
Commercial server for hosting WAP site to be accessed from mobile equipments. Enable position information associated with each client to be recorded.
Admin link:
I would have a desktop PC app accessing the WAP site to read the client positions. These could then be locally passed to an installed locator product. Map Point is one example - but another possibility is to use the Map Point .Net web service to retrieve th einformation you need.
I think there is a lot more to it than this - for example -
What do you want to do when you know where your "employee" is? Do you want to send information to him/her?
How many employees will be tracked? How will you identify each user of the WAP site?
It sounds like a fun project!!
My e-mail is Pete@WesternHope.com
Have you any information on GPS enabled devices or the APIs yet?
Good luck to you!
Kind regards
Pete
21 years ago
Does anyone have suggestions for low cost GPS capabilities in conjunction with a j2me enabled device.
Ideally, I would like to use a low-cost, widely available, cell-phone as the device (as opposed to PDA.) This means the config./profile is likely to be CLDC1.0/MIDP1.0 - does anyone know if there are any GPS access classes available that will work with this combination?
Any advice on location determination is very welcome!
Regards
Pete
21 years ago
Hello again Jawwad
I you do go down the Map Point route (as Michael says, it is NOT the only route) - you would only need how to access a web-service. You do not have to use Microsoft technologies for that - there are alternatives.
Although in Java circles it is probably not very welcome, I do use .Net for this purpose. It has proved to be very, very easy to get a web-site and a PC application running to use MP .Net. Coding in C# is not necessary, you can use VB or J# (?!) - any .Net language. You don't have to learn much about ASP.Net for this to all work - it is very easy.
You can get an evaluation license for Map Point .Net from Microsoft - this will give 45 days to play around. Then you have to sign up to one of their license agreements. This is a business level decision that makes me shudder! :-) Great if you can pass the sign up and cost per transaction onto your client. But, for employee location tracking, you may want to think again.
An alternative to Map Point .Net, dependent on your needs and location of interest, is to use a locally installed product. Again, (sorry) I used Map Point North America and Map Point Europe. I can see no reason why your application can't use a local "locator" product. To do this you need to use Map Point as an ActiveX control in your app. Check licensing carefully if it is not a single user solution. I am sure Oracle have an excellent GIS offering too - although I do not know about it!
Have you decided which route you intend to follow?
Presumably: GPS and user input are the two most viable options.
GPS has advantages and disadvanatges. The advantage is that it can locate your employees wherever they are - even if in the middle of the desert ;-) It does not need user input.
The disadvantge is external device needed - sometimes with a slow initial satelite acquisition. Communicating with the GPS may need some clever work. Result is a lat/long that will not help your administrator decide where the employee is!
Presumably, the reason you need this system is because you cannot rely on the employee informing the administrator of his/her location. For example, "Hello admin, I am at Joe's Bar on 5th Ave. working hard".
Maybe your employees will not be able to give the location cues needed.
So, perhaps GPS, in the absence of "triangulation" is the best solution.
I would be very pleased to hear ho wyou progress - and am willing to maintain contact with you to let you know how I attempt to solve the same problem. (My problem does not have an "employee" or "administrator" but those *roles* do exist in similar way.)
Is it okay to exchange e-mail addresses? Or is that barred on here?
Kind regards
Pete
21 years ago
Hello all
Apologies for being offline for a while.
It seems as though progress has been made. I am also interested in location determination and will watch this space for any great new ideas!
To be honest, I am considering the GPS route as accuracy is important to me plus, the mobile equipment may be unattended and, therefore, cannot rely on user input.
I am very intrigued by the "triangulation" info - I thought only government agencies had access to that info! ;-)) Could prove to be very useful indeed.
In another posting I asked if anyone knew of mobile equipment that supported serial comms. I was thinking of cheap j2me enabled cell-phone, but any low-cost device would do. The purpose of this was to provide for GPS connection. Any suggestions?
I also wanted crypto support in the j2me config/profile - the only suggestion so far was Motorola i95cl - not the cheapest of handsets!
This has a range of crypto support, presumably coded in java and probably quite slow - also has serial comms support.
Good luck Jawwad Ahmed - and thank you Michael Yuan for lots of excellent input.
Regards
Pete
21 years ago
I think Jawwah is interested in techniques to determine the "location" of the mobile device. (See earlier posting)
I suggest - 1. support from telecomms company to "triangulate", 2. attach a GPS device. 3. Use locator service based on some significant landmark/address/geo-info. Map Point .Net (OUCH) can do this for you.
I would be very interested to hear of an automatable solution that does not need:
GPS - (as in 2) or user information (as in 3)
Have you any suggestions?
I am not sure what is coming in future profiles - I did hear something about support for location-based solutions - maybe this was more to do with obtaining nearby geo-data once location has been specified by another means.
Very interesting problem.
Kind regards
Pete
21 years ago
ooops - posted the reply twice (with subtle changes)
Sorry about that!
21 years ago
I am not sure I have fully understood your question, but if Chair.f is a static class member, surely you just reference it, e.g.
Chair.f = true ;
But Chair must be in accessible scope - e.g. in the same package or public. Also, to be static, Chair should be a top level class.
Does this help?
21 years ago