Is there any unique per pc code(static) that Java can retrieve??

Hi
I need to find a unique code (eg maybe cpu or motherboard serial??) on pc via Java.
HDD serials are only unique per batch of them coming out of the factory.
If anyone has some idea as to how this might be achieved, that would be awesome!
But, if Im clueless in my optimism I also need to know, I can humbly accept that ;-)
Thanks either way!

I need to find a unique code (eg maybe cpu or motherboard serial??) on pc via Java.
Does the unique code you are seeking need to be bound to the available hardware on the machine or just so long as it is unique?
Assuming that the need is simply to be unique, maybe this will help give you a start:
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.rmi.server.UID;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
        try
            UID                   id          = new UID();
            String                ip          = InetAddress.getLocalHost().getHostAddress();
            long                  now         = System.currentTimeMillis();
            long                  totalMemory = Runtime.getRuntime().totalMemory();
            long                  freeMemory  = Runtime.getRuntime().freeMemory();
            ByteArrayOutputStream bytes = new ByteArrayOutputStream();
            ObjectOutputStream    out   = new ObjectOutputStream(bytes);
            out.writeBytes(id.toString());
            out.writeBytes(ip);
            out.writeLong(now);
            out.writeLong(totalMemory);
            out.writeLong(freeMemory);
            out.flush();
            out.close();
            randomizer = SecureRandom.getInstance("SHA1PRNG");
            randomizer.setSeed(bytes.toByteArray());
        catch (UnknownHostException e)
        catch (IOException e)
        catch (NoSuchAlgorithmException e)
        }I am not sure just how unique of a code this would actually generate however...

Similar Messages

  • Is there any Contact Manager or Address Book that I can install on my PC (Windows 7) that when synced to my Iphone that will accept my custom Lables for type of entry, such as you have- Home, Work, then "Private Line" ?

    I am wondering if in fact there is any Contact Manager or Address Book that I can install on my PC running Windows7 that when synced with my 4s that it will retain all my custom lables for phone numbers in Contacts on my iPhone, such as Sandra's Private Line, Cadillac, Bat Phone or what ever?

    Hi sahgin,
    The issue eventually resolved itself, I still don't really know why. I kept up with Windows update, and attempted downloading iTunes again from the Apple website, and it just... worked. It now works fine. I don't know why it took approximately 4 months to work, though.
    I'm sorry I don't have any more helpful information. Posting here was my last resort, and clearly Apple never bothered to reply.

  • Is there any other flashplayer besides Adobe's that Firefox can use?

    Running Windows XP,Firefox 29.0, and Adobe Flashplayer 13. Computer acknowledges install but won't display player. It shows itself for a few seconds and then the black window disappears and nothing else happens. I've uninstalled, reinstalled, tried stand alone installer, everything that I've seen suggested. Is there some kind of block or timeout mechanism I'm missing?

    In case one of your extensions is interfering, could you test Flash in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    (Flash and other plugins still run)
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • I have a number of tabs opened in a window and i have grouped them.Is there any add-on or extension so that i can hide it or secure it or lock that tab group ?

    My laptop is being shared by others...so when others open the firefox page they can see all the tabs opened in a window or a tabgroup.i want o hide the tabgroup or secure tha tabs in a window by creating a passoword so that the others dont get the chance to view the tabs that i was browsing and so they have to open a new window and thus all the information in my tabs is safe and still are open even if they close their new window after their browsing.

    hello, when you're using a shared computer a better option would be to create separate (password-protected) windows accounts for each user - then each one would have her/his own firefox profile...
    http://windows.microsoft.com/en-US/windows7/User-accounts-frequently-asked-questions

  • I want to use Dreamweaver instead of Godaddy.  Are there any templates already made for Dreamwaver that I can modified?  How do I start?

    Where or how do I start building anything on Dreamweaver?
    I want to dump my Godaddy account, but I don't know where to start with Dreamweaver....
    And I don't know how much space do I have to build pages?
    Can hosting from Adobe load different websites on my Creative Cloud account?
    Trying to contact Adobe over the phone to ask question is a problem... waiting for 45 minutes just to review my account and didn't get anybody...

    What can I tell you Ken?
    So far the issue is kind of solved... waiting for email instructions on how to transfer my Muse files to be able to host them with Catalyst.
    But.... what a disappointment with Adobe right off the bat.... 
    My CC subscription includes hosting to up to 5 websites.....
    I called Adobe customer service, and they couldn't tell me what did my subscription included, instead, they sent me to Catalyst to purchase a product I already had....
    Then I called Catalyst and they tell me to call back Adobe because my package already include a small subscription to Catalyst....  You think this guy Catalyst will get fired for not trying to sell me something I already had??!!
    Seems like customer service from Adobe, and some of the people at the forums are obsessed on trying to sell you something before looking at the real  issue.
    My previous experience on Adobe forums was on Acrobat from which I asked how to position a table in the file, some dude answer that I needed to buy some other program when all I needed was to press Shift + Arrow........
    People must be careful with Adobe.... they have good programs, but they will milk every dollar you have before paying attention to technical solutions their customers can use with their apps.

  • Are there any recent DV and PFD letters that someone can post that were good sample letters?

    Hi Everyone, Can anyone post in recently used DV and PFD letters that they used to send out to others?   Also would it be better to dispute negative items with the Credit Agencies first for a rapid response than doing DV's?  Your help is greatly appreciated.   Thanks, 

    I personally had success with this combination PFD and DV letter. It includes a contract for the collections agency to sign. While I could probably have gotten away with less, I feel better having the full terms spelled out. The exact language will vary depending on your situation. You'd want to change it if the debt really is yours (without admitting that in the letter, of course). In most cases you'll want to send the DV letter separately first, but I had passed the 30-day limit in my case, so I was trying to make the best of things. I also included a check for the full amount, since I intended to pay and get the problem over with regardless of whether the pay-for-delete was succesful, but that may not be desirable in all cases. (Note that the agreement indicates that acceptance of the payment signifies acceptance of the agreement.) Of course, a collections agency will probably find it hard to resists a check that's in their hands.

  • Is there any limit on JavaScript code used in forms?

    Hi,
    Is there any limit on JavaScript code that we can put in the submit button JavaScript Event Handler's 'onClick' event ?
    I have a code wherein I am calling alert 100 times , but till 90 times it works and if I include the last
    10 alerts in the code , it gives :
    "Exception from wwv_generate_component.build_procedure(WWV-01821) unable to
    generate UI form: ORA-06502: PL/SQL: numeric or calue error: character string
    buffer too small(WWV-16409)"
    Any help would be appreciated.
    Thanks and regards.
    Neeti.

    Hi Ketan,
    If your code can be put inside of a separate JavaScript function, you could either include the function inside of your template or write a separate PL/SQL procedure to print out your JavaScript onto your HTML page using the HTP.P() command (this would need to be called inside of your form).
    Regards Michael

  • Is there any limit on Number of items that can be created in SBO2005B

    Is there any limit on Number of items that can be created in SAP Business One 2005B.
    We are working for button manufacturer.
    Each button will have type,color, size, thickness.
    There are about 100 types, 40 colors, 30 sizes, 10 thickness, 500 models.
    It looks to be approximately above 30lacs item codes has to be created.
    Is there any performance issues or any other known issues towards the large item lists.

    Hi,
    There is no real limit on the number of items you can create (well, the item code is a 20 character key so theoretically the limit is the total number of possible combinations of letters and characters in that key).
    Performance can be an issue with a large inventory, as well as database size (particularly if you have a large inventory and a large number of warehouses). Some issues such as the speed of lookups can be avoided by changing system settings but other issues such as the speed of inventory reports are inevitable going to take longer for larger inventories.
    Have you done any research on looking for SBO addons for the clothing industry? It might be worth searching the CPSN for such addons (ie ones that can deal with sizes, colours etc) as these may help greatly in keeping the number of stock items down to a minimum.
    Kind Regards,
    Owen

  • I have a Mac OS X version 10.5.8 and recently got an Iphone4. I can not access Icloud from my computer. Is there any software, new operating system or anything I can purchase that will allow me access to the cloud?

    I have a Mac OS X version 10.5.8 and recently got an Iphone4. I can not access Icloud from my computer. Is there any software, new operating system or anything I can purchase that will allow me access to the cloud?

    Upgrading to Snow Leopard, Lion, or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    You can purchase Snow Leopard by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The price is $19.99 plus tax. You will receive physical media - DVD - by mail.
    Third-party sources for Snow Leopard are:
    Snow Leopard from Amazon.com
    Snow Leopard from eBay
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
    Be sure your computer meets the minimum requirements:
    Apple - OS X Mountain Lion - Read the technical specifications.
    Macs that can be upgraded to OS X Mountain Lion
      1. iMac (Mid 2007 or newer)
      2. MacBook (Late 2008 Aluminum, or Early 2009 or newer)
      3. MacBook Pro (Mid/Late 2007 or newer)
      4. MacBook Air (Late 2008 or newer)
      5. Mac mini (Early 2009 or newer)
      6. Mac Pro (Early 2008 or newer)
      7. Xserve (Early 2009)
    Are my applications compatible?
    See App Compatibility Table - RoaringApps - App compatibility and feature support for OS X & iOS.
    Am I eligible for the free upgrade?
    See Apple - Free OS X Mountain Lion upgrade Program.
    For a complete How-To introduction from Apple see Apple - Upgrade your Mac to OS X Mountain Lion.
    Model Eligibility for Snow Leopard and Lion.
    Snow Leopard General requirements
      1. Mac computer with an Intel processor
      2. 1GB of memory
      3. 5GB of available disk space
      4. DVD drive for installation
      5. Some features require a compatible Internet service provider; fees may
          apply.
      6. Some features require Apple’s MobileMe service; fees and terms apply.
    Lion System Requirements
      1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7, or
          Xeon processor
      2. 2GB of memory
      3. OS X v10.6.6 or later (v10.6.8 recommended)
      4. 7GB of available space
      5. Some features require an Apple ID; terms apply.

  • My iMac just crashed, and I had some documents open in Pages that were unsaved. Is there a temporary file or backup file that I can access as on a PC? (I have just looked in Timemachine which I had operating, but it did not seem to have any temp files).

    My iMac just crashed, and I had some documents open in Pages that were unsaved. Is there a temporary file or backup file that I can access as on a PC? (I have just looked in Timemachine which I had operating, but it did not seem to have any temp files in it at all - not sure what it would be useful for then).
    Any suggestions?

    Question asked and answered several times.
    If you didn't save, nothing is recoverable.
    iWork apps don't create temp files so, as far as you on't save something, Time Machine can't archive it.
    Yvan KOENIG (VALLAURIS, France) mardi 5 juillet 2011 12:25:31
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please : Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • I brought a new computer is there any way to put the items that i have on my iphone and ipad on my itunes with out erasing and reformating my divices.

    I brought a new computer is there any way to put the items that i have on my iphone and ipad in my itunes. I know the music and apps i paid for but what about the songs and photos. that are not paid for. and having it sync with out it telling me that it has to erase all my things.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Is there any way to recover a note that disappeared on my iPhone and iPad?

    Is there any way to recover a note that disappeared from my iPad and phone?

    You can restore from your iTune or iCloud backup if you have one.

  • I was forced to switch from my original computer to a new one and majority of my iTunes were switched over but my audiobooks did not. Is there any way that I can retrieve them again?

    I was forced to switch from my original computer to a new one and majority of my iTunes were switched over but my audiobooks did not. Is there any way that I can retrieve them again. If I go to attempt to rebuy it, then it says thhat I technically already bought it but it won't download.

    Audiobooks are not available for redownloading, so you need to transfer them from your old computer, or get them from your backup. How did you copy your iTunes contact from your old computer to our new one?
    Regards.

  • Are there any other templates available besides those that come with numbers?

    Are there any other templates available besides those that come with Numbers?

    Hi David,
    If you have Numbers '09 there is a Checking Register template that might suit.
    Numbers can open Excel templates and documents. Do a web search for checking register spreadsheet.
    Regards,
    Ian.

  • Is there any kind of Apple Company policy that Apple's iPhone can only be repair or service at the place from where the iPhone have bought?

    Hello,
    I'm Chintan from India. I have visited UK for study and brought iPhone 5 for me. I used it for about 16 days and now its started showing the problem of coverage. I mean, it shows "NO SERVICE" at the place of carrier name and tower symbol.
    My query:
    Do Apple have this kind of worthless service provider policy?
    I have visited the local authorized service center and they are not accepting my iPhone 5 and telling me that they can not accept it for repair or service because I have brought it from UK. I have checked my iPhone 5 status on the Apple Site and it is showing full cover of Repair and Service, then why the local Apple Authorized Service Center is not accepting my iPhone 5?
    Is there any kind of Apple Company policy that Apple's iPhone can only be repair or service at the place from where the iPhone have bought?
    Kindly help me out as I'm stuck with the so called APPLE IPHONE 5.
    Looking for the POSITIVE, SUPPORTIVE and HELPFUL reply.
    Thank You

    You should have read the warranty/support terms before you made your purchase. Had you, you would have found that iPhone warranty/support is only valid in the country of original purchase(except for the EU where warranty/support is EU wide). In your case, your warranty/support is only valid in the EU, as you have now found out...after your purchase. And, you are correct, they will not service the phone in India.
    Always been this way with the iPhone.

Maybe you are looking for

  • Finder always opens new windows

    Finder always opens new windows for me. It didn't used to do this (its been doing it at least since I was using 10.5.6), and "Preferences > Always open folders in a new window" is not checked. Any ideas?

  • Go To Page Buttons don´t work!

    Hi anyone ... I just downloaded and installed my developer ipa file to my iPad. To my horror NONE of the buttons that specify "go to page" work. What happens is they all go to page one (1). Everything else is fine. The buttons work in Content viewer,

  • Gnome-gmail-notifier [libsoup problem]

    Hi, I am trying to orphan the package gnome-gmail-notifier, but i ran into this problem. I only edited the PKGBUILD to match the new version and edited the download link. Now i am having some problems running ./configure No package 'libsoup-2.2' foun

  • Toggle CSS3 properties on/off in CS 5.5?

    Hi, I am considering upgrading from CS 4 to CS 5.5. In the CSS Panel, are the CSS3 properties listed separate from the CSS2 properties? If not, is there a way to toggle all CSS3 properties off and on? Thanks a bunch, Mike

  • Unable to develop universe on top of my BW query

    Dear all expert, I have the following situation. i have a BW query, i have check the "allow external access". but when i want to develop the universe on top of it, it show me empty field. then i try to develop a crystal report on top of it, but when