Eu w/Japanese Win2K can't enter password

I haven't been able to debug this issue yet. I was just wondering if someone already knew what this might be. Maybe some kind of character set issue?
A couple Japanese End Users are failing my one-way hash password protected application even though they are entering the same English password as everyone else.
The code looks like this:
      char[] passwordAttempt = edtPassword.getPassword();
      byte[] digest = new byte[0];
      try {
         MessageDigest algorithm = MessageDigest.getInstance("SHA-1");
         algorithm.reset();
         byte[] bytes = new byte[passwordAttempt.length];
         for (int j = 0; j < passwordAttempt.length; j++) {
            bytes[j] = (byte)passwordAttempt[j];
         algorithm.update(bytes);
         digest = algorithm.digest();
      } catch (NoSuchAlgorithmException nsae) {
         Trace.ex(nsae);
      passwordValid = true;
      if(digest.length != password.length) {
         passwordValid = false;
      else {
         for(int i = 0; i < digest.length; i++) {
            if (digest[i] != password) {
passwordValid = false;
break;
This code works fine on all the English-based pc's. I do know that no exceptions are being thrown.
Any suggestions?

      char[] passwordAttempt =
edtPassword.getPassword();
byte[] digest = new byte[0];
try {
MessageDigest algorithm =
gorithm = MessageDigest.getInstance("SHA-1");
algorithm.reset();
byte[] bytes = new
tes = new byte[passwordAttempt.length];
for (int j = 0; j < passwordAttempt.length;
t.length; j++) {
bytes[j] = (byte)passwordAttempt[j];
}You are converting UNICODE characters to bytes by ingoring them most significant byte of a character. This cannot be the right approach but if all the users are typing in ASCII characters for the password then I can't see that it should make any difference.
To make it more general, the best that I can come up with is
byte[] passwordBytes = new String(edtPassword.getPassword()).getBytes("ASCII");
though this looks awkward!
Using this you should end up with exactly the same MD5 when using only ASCII characters in a passwords. If you wanted to allow anything a password then you could use "UTF-8" instead of "ASCII"; this would still give the samve result for ASCII characters but will allow most other languages to be used.

Similar Messages

  • ITouch stuck in "iPod is Disabled" mode and I can not enter password, How do I correct this?

    Hello and good day,
    To who ever can assist me...
    My little sister recently experienced the feeling of having her iTouch stolen from her @ school. Since the incident occured, two of her best friends located her iTouch and returned it back to my sister. When my sister attempted to turn the device on, she noticed that the screen that appeared showed her wallpaper, (which was a picture of herself) and the red box message at the top of the screen that indicated "iPod is Disabled"(below that statement states) "connect to iTunes"
    So in seeing this message she connected the device to the family laptop. She proceed to open the iTunes program. Once the program was opened, she waited for the iTunes to read her iTouch. Once iTunes attempted to read the device the following error message appeared within iTunes stating:
    "iTunes could not connect to the iPod "Delilah's iPod"because it is locked with a password. You must enteryour passcodeon the iPod before it can be used with iTunes."
    With that error message coming up, the question then came to be, how do I enter my password if the Touch does not provide me that option to do so? The Touch is stuck in this "Disabled" mode and the screen that appears does not present option of entering password or anythihng for that matter.
    With this issue, is there anyone out there that has experience this touble? Is there a solution, and if yes, could you please guide and advise us on what action to take? Unfortunatley, my sisters warrenty has expired. So i know that if the issue requires for us to take it in for repair that we may have to pay for the repairs services, but it would be worth it if I can see that there is or is not an answer for this problem.
    Thank you very much for you time! =)
    Sincerely,
    Jefferson K. Tover
    (big brother)

    Place the iPod in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

  • Can't enter password for 5 million minutes (malfunction)

    I have an ipod touch I have had for over 2 years. One day it just pops up that I have to wait over 4 million minutes before I can even enter my password to open it. I realize that it is a security thing, but it is a malfunction in my ipod. Since Apple doesnt give a crap because their warranties are so short, they say that the only thing I can do is restore it, which will erase pictures along with tons of songs I have downloaded that I will have to repay for since you can only download once. The computer it is backed up on is 2000 miles away. I know what my password is... Is there a way to get this bypassed so that I can enter my password before waiting 5 million minutes to use it again?

    Welcome to the discussions,
    according to this article, the only thing you could try is this:
    If you restore on a different computer that was never synced to the iPhone or iPod touch, you will be able to unlock the device for use and remove the passcode but your data will not be present.
    copied from: http://support.apple.com/kb/HT1212

  • IPhone Crashed-Says Restore Needed-Can't Enter Password to Restore!

    Earlier today while using my iPhone with Telenav, it suddenly just quit working! It felt hot and wouldn't come back on for a few mins. When it did come back on, it said Restore needed. However, when I connect iPhone to computer, iTunes cannot connect because of password!!! iPhone will NOT allow me to enter password! Shows iTunes or iPod Screen on phone and will only allow me to make emergency call! This phone is my life!!! My whole life is INSIDE this one! Calendar, numbers, documents etc!!!! I feel lost! How can I restore when I cannot enter password to connect?? HELP PLEASE!! It is the first of the 3GS phones and have NEVER had a minutes problem until now and it is nearl 4 years old I think! Has 32GB.

    Thanks - I tried that just now. Didn't work. The passcode prevents the phone from being accessed. I have no idea what the guy used when he did it before but it was like magic.. there was a green button, he clicked it, the password screen went away and the iPhone home screen just popped up like nothing - I wish I could figure this out. If this program could override the password it would be absolutely perfect. Any other suggestions?

  • Iphone is disabled and old will allow emergency phone calls, how can I enter password

    iphone is disables and will only allow emergency phone calls, how can I enter a password to unlock it?

    Just restore it by putting the phone into DFU mode. You will loose every thing but it will be back to normal pal
    Press and hold power and home button together for 10 seconds by connecting it to cable, leave the power button but keep holding the home button for 30 seconds and it will go into DFU mode. Open Itunes and just perform a restore or update

  • Can't enter password after 0s7 upgrade .

    Before 0s7 upgrade, ipad password included Greek characters. Now start up keyboard screen has no 'world' button to access Greek characters so cannot enter password to start ipad. Any suggestions on how to restore/ find in settings? Thanks

    I have the same problem, but as nobody else has replied to your post I am assuming that it is not very common. For me, it has only just started and after a bit of investigation I have found that this problem only arises when running my Powerbook G4 on mains power without the battery installed. Once the battery is fitted (still running on mains power) I can then enter the password as usual. I had been running the G4 without the battery since the latest battery recall.
    When the problem arose I find that by clicking the mouse within the User Name field (at the end of my name) and then pressing the tab key, to move the cursor into the password field, allowed the password to be entered. Sometimes I had to do this several times before the key presses were accepted and the password could be entered.
    Powerbook G4   Mac OS X (10.4.7)  

  • Can't enter password?

    Okay, so my password is one of the accents. To enter it, you hold down a letter and the letters with accents pop up. I know, stupid idea, but no one ever guesses it. Yesterday, my friend disabled it for a joke, and so I waited for it to recover the full minute, and now I can't enter my password. I kept trying and now I've just stopped because the last time it disabled it was for an hour. How do I fix this?  Now I can"t even access my alarm clock or anything. It's the iPod 5.

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:         
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store   
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • Can't enter password to update apps

    iP4 with latest iOS updates.
    Well this is strange.
    When I try to install app updates, the little box shows up to enter my password, but the keyboard does not show up,so I can't enter the password.
    Anyone else seen this?
    Thanks, Colin

    Aaaaaaaand all of a sudden it now works.
    I did not do a thing.
    Colin

  • Can't enter password after sleep

    When I put my powerbook to sleep by closing the lid while playing a game (eg Civ 3) and then wake it (open the lid/ press space) I can't enter a password in the password field as it doesn't accept any key presses (even after clicking on the field). I was going to telnet in but the machine goes back to sleep too quickly. Is this a known issue with a workaround (I don't want to turn off the password as I take it on the train and I have bank details on it).
    Thanks in advance for any help.
    Arron

    I have the same problem, but as nobody else has replied to your post I am assuming that it is not very common. For me, it has only just started and after a bit of investigation I have found that this problem only arises when running my Powerbook G4 on mains power without the battery installed. Once the battery is fitted (still running on mains power) I can then enter the password as usual. I had been running the G4 without the battery since the latest battery recall.
    When the problem arose I find that by clicking the mouse within the User Name field (at the end of my name) and then pressing the tab key, to move the cursor into the password field, allowed the password to be entered. Sometimes I had to do this several times before the key presses were accepted and the password could be entered.
    Powerbook G4   Mac OS X (10.4.7)  

  • Can't enter password for Actiontek Setup Utility

    So I'm trying to access the Actiontek setup pages at 192.168.1.1.  I enter "admin" as my username but when i go to enter my password, every time I hit a key, three letters appear making it impossible for me to enter my password.  So I can't get into the utility.  Anyone else having this issue?
    Tried it on two different computers.
    Solved!
    Go to Solution.

    EricScott wrote:
    So I'm trying to access the Actiontek setup pages at 192.168.1.1.  I enter "admin" as my username but when i go to enter my password, every time I hit a key, three letters appear making it impossible for me to enter my password.  So I can't get into the utility.  Anyone else having this issue?
    Tried it on two different computers.
    The router does not echo back what you type, but displays asterisks instead. Security feature incase someone is looking over your shoulder. Type password or password1 and ignore what is displayed.

  • Out of no where, voice over seems to have taken over my phone.  can't enter password. how do I reset or turn off voice over?

    Out of no where my phone suddenly showed enlarged numbers and letters.  Voice Over has taken over the phone. 
    The phone is unresponsive when I try to enter the password to gain accesss to the phone.  I can only power on and off and that does not stop Voice Over.  Any ideas as to what could be wrong and how I correct it?

    Greetings midgiesmom58,
    Welcome to the Apple Support Communities!
    I understand that VoiceOver is enabled on your iPhone and you are having a hard time turning it off. In this situation, I would recommend reading over the Managing Accessibility features using your device section in the attached article and use iTunes to help you disable VoiceOver. 
    Use Accessibility features in iOS - Apple Support
    Cheers,
    Joe

  • Can't enter password for remote

    I cannot find where to enter the password in itune for the remote application, when I clic on my ipod in devices, I can only change the name of the ipod. Any ideas

    Hi Chuck,
    Firstly, remote won't work with your iPod plugged in (USB).
    Try disconnecting, close iTunes, restart it, launch remote on the Touch.
    If all is well you should see your Touch in devices with a small remote icon next to it, click it and do the rsest.
    If not have a quick search of this forum, lots of tips on connecting already discussed.
    Dud.

  • Can't enter password to log in (grayed out).  (Oh, and I'm stupid.)   :o)

    I have an iMac (G3, 10.3.something) that developed some issues and wouldn't allow me to do certain things so I created a root account to see if I could bypass some permissions hang-ups. I've done this before, no worries. This time, however, when I logged off my normal account and tried to log back in with root, the log-in box is grayed out and won't let me enter a password. (My admin. account had been recently set to require a password to complete a log-in.) I turned the iMac on in target mode and accessed the HD with my iBook but, now that I'm in there, I'm not sure where to go to turn off that "require password" feature in my admin. account. There's no visible "System Preference" panel to just click on. I was hoping to just do away with the root account and log back in without a password. Only now, I'm just standing around in there, now, scratching my head. Help?

    No problem. I understand the problem now, although I don't have a certain solution.
    You can try starting up in Safe Mode, to see if it makes a difference
    http://support.apple.com/kb/HT1564
    http://support.apple.com/kb/HT1455
    If you are able to start up beyond the login window, run Disk Utility and use the +Repair Disk Permissions+ routine on your startup volume.
    If the login problem is the same, you may want to start up using your Mac OS X installation disc. When you get to the Installer screen (after selecting language), go up to the menu bar. Under Utilities, select to run Disk Utility. On the +First Aid+ tab, run +Repair Disk Permissions+ on the startup drive. Normally, you should run +Repair Disk Permissions+ while started up normally, but you are not able to do so. Also run +Repair Disk+ while you are there.
    Quit Disk Utility and try a normal restart.

  • Can't enter password in protected pdf in Preview

    I occasionally use Preview to save a pdf document as a jpg file (for posting a preview of a downloadable file on a website). Some of the pdfs that I am trying to do this with are password protected. I know the password (they are created in-house; they're our documents), and yet when I select the menu option in Preview to enter the password, it doesn't actually permit me to enter the password. The entry field is non editable.
    Anyone else having this problem, or have a solution? Please advise. Thanks.

    Does the password work if you use the Adobe Reader?

  • I choose a password with ñ, i can't enter password anymore

    i have a password with ñ, and now i cant'n enter because it didn't take option+n en the password field.  Do you know other way to enter ñ en the password field?

    sorry, The system told me this iCloud email just only an free applicted apple id for my Mac Mini. I think I success for application. But when I login with it, It conn't works. and told me it is not a apple ID.

Maybe you are looking for