211

I wanted to check if it's possible to use emoji in a password for my Account on OS Yosemite. It worked but I didn't realize that the login screen has only native keyboards, so I can't type emoji there.

So the situation is that I know my password but I can't type it. The machine has rebooted to the Recovery HD and I don't see a way to enable the emoji keyboard there. In effect, since FileVault was turned on, I can't restore the password easily.

I see three possible options here, but would be happy to hear anything else:

  1. Find a way to type emoji in the password field, this would be ideal.
  2. Access my Account from external machine that will allow me to type my password from there so I can type emoji (not sure there such a thing)
  3. Restore the password even though I used FileVault.
user3439894
  • 58,676
Artiom Dashisnky
  • 2,081
  • 2
  • 12
  • 10
  • 1
    Looks like you can't even type unicode characters using the Option + UnicodeID in the login screen either... – ecnepsnai Aug 26 '15 at 19:34
  • What is the situation now? Is the mac at the FileVault screen and it's running or is it rebooted and waiting to unlock the drive? – bmike Aug 26 '15 at 20:04
  • 1
    @bmike rebooted and waiting to unlock the drive – Artiom Dashisnky Aug 26 '15 at 20:34
  • 1
    @ArtiomDashisnky Ouch. I learned (the hard way as you are) to keep a second admin account on all my FileVault macs for just this reason. I hope you have a good backup and time to do a reinstall. :-( – bmike Aug 26 '15 at 21:05
  • Long shot as it depends if you set up when you set the account up but have you tried your apple id.. to reset the password see: https://support.apple.com/en-us/HT202274 and https://support.apple.com/kb/PH13971?locale=en_US – markhunte Aug 26 '15 at 23:15
  • 3
    As another option, you might be able to either use "escaped unicode" (look it up) or connect the internal drive on another mac and unlock it there. – John Keates Aug 27 '15 at 01:49
  • 7
    Would the Apple Store be able to help you with this? I know the average tech won't know how to help, but perhaps they can escalate this issue to someone who might know. – Thunderforge Aug 27 '15 at 03:40
  • 5
    Could you not VNC into the machine and use your phone to type the password? – ʰᵈˑ Aug 27 '15 at 08:44
  • 4
    Does Single User Mode work? Boot the computer and as soon as your hear the boot chime (don't mute your volume before shutting down) press Cmd+S. If the screen turns black and you get a console, then reply yes. I ask because there is a way to force reset a password (kinda insecure if a hacker has physical access to your computer) with SUM as long as you did NOT set a firmware password. However, I don't have FileVault enabled and I didn't want to post an answer that can't be applied. – Arc676 Aug 27 '15 at 09:43
  • @Arc676 yes, it blinks with a console on black background for a second and goes to the login screen. – Artiom Dashisnky Aug 27 '15 at 10:44
  • @thunderforge unfortunately I don't have Apple Store where I'm located right now, but I contacted Apple Support yesterday and basically they didn't have any solution for me besides standard procedures. We tried to type the emoji using Hex Code Input keyboard though but it didn't help. At the end they suggested to install Mac OS on an external drive and to access my data from it since hopefully I'll be able to type emoji there. – Artiom Dashisnky Aug 27 '15 at 10:51
  • 1
    So you're saying that the console disappears immediately? How about recovery mode? Can you access that? At the boot chime press Cmd+R to access recovery mode. This should be a partition on your hard drive but some newer Macs come with Internet Recovery Mode and require an internet connection. – Arc676 Aug 27 '15 at 11:03
  • 1
    When you tried the Unicode Hex keyboard, what exactly did you type? For a character which has 5 codes you must type the two 4 code utf-16 surrogates separately in sequence. Also you must hold down the option key while typing the 4 codes. – Tom Gewecke Aug 27 '15 at 13:00
  • 38
    This is definitely a Mac bug: allowing you to set a password but not allowing you to enter it. – jvriesem Aug 27 '15 at 13:20
  • @Arc676 If he resets his password, he'll lock himself out of his computer because he has FileVault enabled, and he'll need to wipe and reinstall. FileVault is an encryption mechanism. – Zenexer Aug 27 '15 at 16:52
  • There is an option to enable the Input menu on the login screen, but it's disabled by default. – Zenexer Aug 27 '15 at 16:57
  • Do you have the guest account enabled? – Zenexer Aug 27 '15 at 17:07
  • Did you set the allow Apple id to reset password. If you cannot remember you could try it as in the links I commented before. ( If you incorrectly enter your account password at the login window three times, a message appears stating "If you forgot your password, you can reset it using your Apple ID" ) – markhunte Aug 27 '15 at 18:39
  • @TomGewecke No, I think he was talking about the Option key trick. The character viewer isn't accessible from the login window without setting an option prior to logging out. If he had done that, he'd be able to use the character viewer, and this wouldn't be a problem. – Zenexer Aug 27 '15 at 19:10
  • @TomGewecke I think he didn't enable it, though, which is why that approach was unsuccessful. It would've worked if he had enabled it, and the support rep probably could've given him the right codes. – Zenexer Aug 27 '15 at 22:54
  • @Xenexer So FileVault encrypts using your password? Isn't that a security flaw because if a user selects a weak password FileVault will be next to useless? – Arc676 Aug 28 '15 at 08:50
  • This made me think of Zach Holman's 'Abusing Emoji in iOS and Your Mac ' - http://zachholman.com/posts/abusing-emoji/ – Steve Moser Aug 31 '15 at 01:23
  • After it happened to me I decided to check what services support Emoji-passwords and if it's a good idea to use them https://medium.com/@hvost/why-you-should-not-use-emojis-in-your-passwords-b8db0607e169 – Artiom Dashisnky Sep 06 '15 at 09:25
  • @Arc676: That's a problem with the user, not with the OS. – Vikki Dec 28 '21 at 05:19

8 Answers8

165

If you have "Other Input Sources" available at the top right of your login screen, select the one called Unicode Hex Input. This can be used to input emoji (or any other character) into the password field, as long as you know the Unicode Hex number of the character. This number can be found in the Character Viewer or on the internet.

Some items you find in the "emoji" category have Unicode hex numbers with just 4 characters, such as Airplane U+2708 ✈. With the Unicode Hex Input keyboard, you input this by holding down the Option key while you type 2708.

Other emoji have Unicode hex numbers with 5 characters, such as Grinning Face U+1F600 . For these you need to find the two corresponding UTF-16 Hex codes (sometimes called "surrogates") by consulting Character Viewer or using an internet source like fileformat.info. For 1F600 these are D83D and DE00. You can input 1F600 by holding down the option key while typing D83DDE00. You may see two dots in the field, but it is still just one character.

Tom Gewecke
  • 20,864
  • 1
    I can confirm if you do have it you can change to the Unicode Hex input and type a them. But if you do not have any users logged in already, you will not have the input available at the top of the login screen. So is there a way of getting it there if it is missing. – markhunte Aug 28 '15 at 16:49
  • 32
    This is the best way for solving my problem. I tried to use Hex Code keyboard layout to insert the emoji together with the guy from Apple Support. We tried to use the U+1F600 -like format though, so it was typing a different special character and not the emoji. Both of us didn't know that we have to use UTF-16 Hex code. Thanks Tom! – Artiom Dashisnky Aug 28 '15 at 18:44
  • This solved my login issue, I think this should be the accepted answer as it is simple. – Mahesh H Viraktamath May 10 '21 at 09:43
66

I solved it by the solution Apple Support suggested to do, here are the steps I did:

  1. Install OS X on an external drive from Recovery mode (Cmd + R while starting).
  2. Boot from the external drive.
  3. Install the Hex/Emoji keyboard to be able to type the relevant character.
  4. Go to Disk Utility, choose the locked disk. Go to File -> Turn Off Encryption.
  5. Enter your password here and leave it for couple of hours, since the decryption is going to take a while and there is no indication of progress.

    Disk decryption in progress

  6. Restart in Recovery mode again. Go to terminal and run resetpassword.

  7. Choose your disk and create a new password for your user.
  8. Restart and use your brand new password to login.
grg
  • 201,078
Artiom Dashisnky
  • 2,081
  • 2
  • 12
  • 10
  • When you say "Hex/Emoji keyboard", are you talking about the keyboard called "Unicode Hex" or about the Character Viewer (or Emoji & Symbols in some menus)? – Tom Gewecke Aug 28 '15 at 09:54
  • 1
    Specifically for my problem I installed custom keyboard that I built and used to type the original password (you can download them here if you're interested http://emojikey.xyz/pages/install). – Artiom Dashisnky Aug 28 '15 at 10:02
  • Thanks for that info! Nothing "hex" about those. Did you ever actually try the Apple Unicode Hex Input keyboard to input your emoji at the login screen? – Tom Gewecke Aug 28 '15 at 10:13
  • Yes, unfortunately it wasn't able to type emoji. I tried it together with the Apple Support senior advisor, he tried it on his Mac not in password field. It seems like it works with special characters but not with emojis for some reason :( – Artiom Dashisnky Aug 28 '15 at 10:31
  • 3
    I've had no trouble typing emoji with it as a login password. I wonder if the advisor knew that you can't just type 5 codes after option, you have to look up the two components and type them separately. For example, smiley emoji 1f600 gets typed as d83d followed by de00. – Tom Gewecke Aug 28 '15 at 10:40
  • @TomGewecke seems that you're right! We tried to type it in a format of 1f600 indeed. How can I find these "two components" code sheet for emojis? What's the name of this format? – Artiom Dashisnky Aug 28 '15 at 11:18
  • 2
    It is called the "utf-16 hex" format. You can find it in the Character Viewer or on the web, e.g. http://www.fileformat.info/info/unicode/char/1f600/index.htm – Tom Gewecke Aug 28 '15 at 11:26
  • @TomGewecke would you post an answer on this here as a stand alone answer? It would be a decent edit, but I'd rather put bounty on that solution standing alone since it is clearly the best one IMO. – bmike Aug 28 '15 at 13:22
28

Since you have Filevault - that makes your situation precarious and a bit delicate.

Some good news, Apple has disabled emoji entry in the password pane for 10.11 El Capitan - I can't paste or get emoji in the Users & Groups preference pane.

Apple's official manner to get past this is to click the ? in the password field and reset your password. If you used a recovery key - you can enter it without needing emoji keys. If you used AppleID, you can enter that without needing emoji.

file vault unlock

Barring that, If you have a current backup (or can let things complete if you are logged in), the fastest way froward is to wipe the Mac and then restore the backup. You can choose a new password for a new admin account and then import the user files.

If you have ssh enabled, or remote desktop enabled, and the Mac is still logged in to your account, you could log in to the Mac from another Mac over the network. This will not work if you have rebooted the Mac and Recovery HD boot is waiting at the Filevault unlock screen.

If you have a second admin account that is FileVault enabled, you could reboot and use that password to unlock the disk and then reset the password on your main account. Lastly, you could boot to recovery HD or internet recovery and reinstall the OS to a USB drive. Then you can mount the file vault drive and have emoji to unlock the volume and make a new admin account through various tricks / procedures similar to using single user mode to remove the .AppleSetupDone file.

bmike
  • 235,889
  • 2
    Unfortunately all of these options are irrelevant since I'm logged out of the system. Apparently I didn't realize what FileVault is when I enabled it, so I don't really remember what I defined there :( – Artiom Dashisnky Aug 27 '15 at 10:44
  • 1
    @ArtiomDashisnky yes - the best option is this one - Boot to recovery and install OS X onto an external USB drive/device. From there you can get to the drive, unlock it and remove one file /var/db/.AppleSetupDone which will then let you make a new admin account with a password you can type. Then you can change the main password with the new admin account. You might have to remove file vault entirely - I'm not sure you can grant the second admin unlock privs this way. – bmike Aug 27 '15 at 13:54
  • @bmike That won't work with FileVault, since it's encrypted--the new account would lack the necessary information to decrypt the drive. He's have to actually reset the password from the secondary OS installation, which would be difficult because he'd also need to re-encrypt the keys used to decrypt the drive (with his new password). – Zenexer Aug 27 '15 at 17:00
  • @Zenexer I'll probably work through the exact steps later today if there's interest and update my answer. I've done it before without using the recovery key - once you have an OS running and the core storage volume - you can enter the correct password. The OP knows the password - it's just using characters the default boot keyboard doesn't allow entry. – bmike Aug 27 '15 at 17:25
  • @bmike Right, the trick is you need to actually enter the existing password somewhere. Resetting the password outright without entering the existing password would likely ruin his chances of recovering anything. – Zenexer Aug 27 '15 at 17:43
  • Bingo @Zenexer - getting to a place to enter the password unlocks the kingdom. If you reset the password, the only issue is you lose your keychain until you can enter the password there. No data loss, just delay. – bmike Aug 27 '15 at 21:52
  • Thank you guys so much for your help, I just posted the exact steps of what I did. @bmike mentioned the solution briefly in the edited respond too – Artiom Dashisnky Aug 28 '15 at 09:51
9

Adding to bmike's answer, if you can't do any of that, and don't have a recent backup, you might try connecting the disk to another computer, and mounting the volume to save your files. You can apparently do it with both mac, windows and linux.

SztupY
  • 408
  • Thanks, that's the option I'm trying to process with now, since I know my password I'm trying to install Mac OS on an external drive and access my data from there. I believe I will have an option to type an emoji there. – Artiom Dashisnky Aug 27 '15 at 10:47
  • 1
    Yes - this is the best option since you can reinstall a new OS on to an external drive without needing emoji. Alternatively place the Mac in Target Disk mode and expose the Core Storage volume to another Mac is equivalent, but takes another CPU. – bmike Aug 27 '15 at 13:51
6

You could use ssh, telnet, vnc/rdp, Back To My Mac or similar methods, provided they are enabled and/or available.

Also you could login using the default guest account or any regular user account, if available. Then:

Execute the CLI Terminal.app; type passwd <username>; enter ⎆/return ⏎; (where <username> is the name of the account you're locked out of..)

You will be prompted to enter your problematic password. Hitting ++space will open a unicode tool to assist you with entering the emoji character(s).

If successful you will be granted the opportunity to enter a new password. Type the new password a second time (to verify) and that ought to do the trick.

grg
  • 201,078
voices
  • 2,209
4

This is to go with @TomGewecke answer.

If you are seeing the input menu at the top right hand corner of the login screen.

This may only be because their is another user logged in. ( Fast user Switching).

If there is a user already logged in, the input menu will always show even if no users have it enabled to show in their menu bar.

But if there are no users already logged in then you will not get the menu, unless you have enabled the input menu to show in the login window before.

If you want the keyboard layout (input menu ) to show at the login window regardless of if there are other users logged in or not with fast user switching. Using an Admin account :

  • Go to System preferences -> Users & Groups.
  • SelectLogin Options.
  • Check Show Input menu in login window.

enter image description here

  • Then when at thelogin window:

click the Input menu (shows the name of the currently selected input source next to a keyboard icon) in the upper-right corner of the screen, then select the desired input source or keyboard layout. If you don't see the input source you are looking for, move the pointer over Other Input Sources, then select the input source from the complete list that appears.

Apple doc

(not originally I did not see the Unicode Hex input. As I was doing this from ScreenSharing and the Unicode Hex input was at the bottom, but of my screen. So I missed it the first time )

markhunte
  • 12,242
3

Even if you're locked out, you should still have access to the Accessibility Settings part of your System Preferences, in which case you can proceed to Keyboard Preferences and adjust your peripheral input sources. This means you can add/enable "Unicode Hex Input". Plus, checking "☑︎ Show Input menu in menu bar" will allow you to "⌨ Show Character Viewer" and inject a variety of Unicode & Emoji characters.

grg
  • 201,078
voices
  • 2,209
  • 1
    How is that supposed to work? You can open the accessibility panel with Fn + Option + Command + F5, but it's stripped down and doesn't let you access anything useful. You can't access System Preferences. – Zenexer Aug 27 '15 at 17:14
  • The OP made a comment where he said he tried the Unicode Hex input, but failed. So he doesn't have to add it. It should work according to my own tests, if you know how to use it correctly. – Tom Gewecke Aug 27 '15 at 18:45
  • I didn't read every comment in the thread tbh. I was just addressing the original question. Regardless, I'm sure i tried to make it applicable/relevant to as many people as possible. Hopefully it helps somebody. – voices Aug 28 '15 at 01:19
  • It doesn't help anyone if like Zenexer says you cannot in fact access system prefs/keyboard/input sources. Is he correct? – Tom Gewecke Aug 28 '15 at 01:52
-1

I am not a Mac user so this may be nonsense. However since the situation is desperate, I'll offer it anyway.

Unicode Hex Input

You can use the utility in OS X to generate many Unicode characters by manually inputting the hexadecimal code. Other options include saving word processor files as Unicode or UTF text.

  1. Make sure you have activated the Unicode Hex Input keyboard. See the activate keyboards section for more details.

  2. Open an application which supports Unicode HexInput such as TextEdit. TextEdit is installed with OS X and can be opened from the Dock or the Applications folder.

  3. Switch keyboards to the Unicode Hex Input from the flag icon dropdown menu on the upper right. If the Unicode Hex Option is grayed out, then you are in an application which does not support this utility. Note: Most current applications support this keyboard, but some old versions of software may not.

  4. To input a specific character, hold down the option key, then type in the four-digit hexadecimal Unicode value (e.g. 044D = Cyrillic э). Charts listing Unicode values for different scripts are available at www.unicode.org/charts.

http://symbolcodes.tlt.psu.edu/keyboards/mackey.html#unihex

  • 2
    It's not total nonsense, just irrelevant to be talking about opening apps when the question is about how to input something into the login screen. – Tom Gewecke Aug 27 '15 at 15:09
  • This would be great for a situation where the OS was running, but in that case, the simple answer is use the Emoji keyboard. – bmike Aug 27 '15 at 16:14
  • @bmike I have tested making and logging into test accounts with emoji in the password using the Unicode Hex keyboard. It worked fine. I am wondering if the OP just didn't use the keyboard correctly. – Tom Gewecke Aug 27 '15 at 18:42
  • @TomGewecke I'll ask a follow on question for you to answer if you can figure out how to enter emoji at the FileVault unlock screen. That would be gold / bounty material. – bmike Aug 27 '15 at 21:54