HT5077 Decryption of Encrypted hfs+ using Lion OS X

How to Decrypt coreStorage (Encrypted hfs+ using Lion OS X) file system. because i forgot my encrypted drive(hfs+ encrypted) password or how to change password of this drive. please help me regarding this file system as soon as possible.

I'm afraid you're out of luck.  The whole purpose of encryption is so it can be accessed only by someone with the password.
Is this your OSX drive?  If so, did you record the Recovery Key?  And/or register it with Apple?  If you did, follow the procedures in OS X Lion: About FileVault 2.
Note this in the Additional Information section:
"Please take note that the encryption used in FileVault 2 will make accessing data on your encrypted drive impossible without the permitted user accounts' passwords or the recovery key. When you choose to turn on FileVault, you will no longer be able to auto-login. Take great care in choosing an account password that you feel is both secure and easy for you to remember. When enabling FileVault, carefully write it down or be certain to make a copy of exactly what is shown and store it outside of your encrypted disk. If choosing to store your recovery key with Apple, take great care in choosing your questions and providing answers you can, if needed, clearly convey to an AppleCare phone support advisor." (emphasis added)

Similar Messages

  • I want to password protect an external dvd. I try using disc utility, but it won't format with encryption as it claims in the Help instructions. I am using Lion. Any ideas?

    I want to password protect an external dvd. I try using disc utility, but it won't format with encryption as it claims in the Help instructions. I am using Lion. Any ideas?
    Using Disk Utility, I select the disc image that contains the data that I want to backup to a DVD and select Burn. The program asks that a blank DVD be inserted.  When I do that, no format pop-up appears as is indicated in the Help instuctions.  If I procede with the burn, there is no password protection.  Before I converted to Lion, I used to use Disk Utility to burn backup DVDs without any problems.

    AFAIK, you create an encrypted disk image and burn that to DVD. There's nothing else to do, but I might be mistaken.

  • Unable to unlock encrypted disk images created with Snow Leopard using Lion

    Anyone else unable to unlock encrypted disk images created with Leopard and Snow Leopard with Lion?  I know that they made changes with the release of FileVault 2 on Lion and Snow Leopard cannot use Lion encrypted disks but I thought it was backwards compatible where Lion should still be able to work with Snow Leopard created images (it was in the pre-release versions of Lion).
    When attempting to mount an encrypted disk image created with Snow Leopard on Lion the normal password prompt appears but then just reappears every time the password is entered and does not unlock and mount the image.  I'm positive the correct password is being entered and it works just fine when done on a machine running Snow Leopard.

    Not in cases when the computer successfully boots to one OS but produces three beeps when an attempt is made to boot it to another. If it really was a RAM problem that serious, the computer wouldn't get as far as checking the OS version, and it has no problems booting Lion. In the event of a minor RAM problem, it wouldn't produce three beeps like that at all.
    (67955)

  • Decrypt the encrypted password

    Hi there,
    I have been scratching my head for some time to fix one issue. We are planning to change the plateform/technology and we need to bring over existing login to new system. In order to have the same password I need to decrypt the password before I send it to new system. When we stored the password, it encrypts them and stores it in database. I am using following code to decrypt it. it's not worlking . This is error I am getting.
    Given final block not properly padded
    Here is some more information:
    Key is :javax.crypto.spec.SecretKeySpec@18f3a
    Format is :RAW
    getAlgorithm() is :DES
    String encrypted = abcdefgh
    Provider is: com.sun.crypto.provider.SunJCE()
    This is my code to decrypt which throws error " Given final block not properly padded" :
    public String decrypt(String encrypted){
              Cipher ci = null;
              byte [] result = null;
              try {
                   ci = Cipher.getInstance("DES");
                   ci.init(Cipher.DECRYPT_MODE, key);
                   System.out.println("CryptoUtil()" +"before hexToByteArray. Byte Data: "+encrypted);
                   byte [] encryptedData = hexToByteArray(encrypted, false);
                   //Log.out("CryptoUtil()" +"after hexToByteArray. lenth: "+ encryptedData.length);
                   result = ci.doFinal(encryptedData);
              catch (Exception e) {
                   System.out.println("CryptoUtil()" +"ERROR: "+ e.getMessage());
                   return encrypted;
              String strResult = new String(result);
              return strResult;
    Please help.
    Thank you.

    These are the two values I am getting for encrypted password:
    97654de7857cd9aab331995cba044fc6
    a125a6b2a71e23adc002ac7fbe1a1042
    Is this a hex code?
    I think the key is: abcdefgh
    This is my code to encrypt and decrypt:
          * empty constructor
          * @param keydata
         public CryptoUtil(String keydata){
              if (keydata.trim().equals("")){
                   logDebug("CryptoUtil()" +" Constructor didn't get a valid key!");
                   usage();
                   System.exit(0);
              }else{
                   keyBytes = keydata.getBytes();
                   key = new SecretKeySpec(keyBytes, 0, keyBytes.length, "DES");
              try {
                   Provider sp = new com.sun.crypto.provider.SunJCE();
                   //logDebug("CryptoUtil() " + sp.getInfo());
                    Security.addProvider(sp);
                  }catch (Exception ex) {
                         logDebug("CryptoUtil() " +"Problem loading crypto provider \n error:"+ex.getMessage());
                   usage();
                    System.exit(0);
          * Encrypt
          * @param s
         public String encrypt(String s){
              Cipher ci = null;
                  byte [] result = null;
                  try {
                   ci = Cipher.getInstance("DES");
                   ci.init(Cipher.ENCRYPT_MODE, key);
                   result = ci.doFinal(s.getBytes());
                  }catch (Exception e) {
                        logDebug("CryptoUtil()" +"ERROR: "+ e.getMessage());
              String strResult = byteArrayToHex(result);
                  return strResult;
          * decrypt a card number
          * @param encrypted
         public String decrypt(String encrypted){
              Cipher ci = null;
                  byte [] result = null;
                  try {
                   ci = Cipher.getInstance("DES");
                   ci.init(Cipher.DECRYPT_MODE, key);
                   //Log.out("CryptoUtil()" +"before hexToByteArray. Byte Data: "+encrypted);
                   byte [] encryptedData = hexToByteArray(encrypted, false);
                   //Log.out("CryptoUtil()" +"after hexToByteArray. lenth: "+ encryptedData.length);
                   result = ci.doFinal(encryptedData);
                  catch (Exception e) {
                   logError("CryptoUtil()" +"ERROR: "+ e.getMessage());
                   return encrypted;
              String strResult = new String(result);
              return strResult;
         static final String hexDigitChars = "0123456789abcdef";
          * @param a
         public static final String byteArrayToHex(byte [] a) {
              int hn, ln, cx;
              StringBuffer buf = new StringBuffer(a.length * 2);
              for(cx = 0; cx < a.length; cx++) {
                    hn = ((int)(a[cx]) & 0x00ff) / 16;
                    ln = ((int)(a[cx]) & 0x000f);
                    buf.append(hexDigitChars.charAt(hn));
                    buf.append(hexDigitChars.charAt(ln));
                    buf.append(' ');
             return buf.toString();
          * @param str
          * @param rev
         public static final byte [] hexToByteArray(String str, boolean rev) {
              StringBuffer acc = new StringBuffer(str.length() + 1);
              int cx, rp, ff, val;
              char [] s = new char[str.length()];
              str.toLowerCase().getChars(0, str.length(), s, 0);
              for(cx = str.length() - 1, ff = 0; cx >= 0; cx--) {
              if (hexDigitChars.indexOf(s[cx]) >= 0) {
                   acc.append(s[cx]);
                   ff++;
               }else {
                   if ((ff % 2) > 0) acc.append('0');
                        ff = 0;
              if ((ff % 2) > 0) acc.append('0');
              byte [] ret = new byte[acc.length() / 2];
              for(cx = 0, rp = ret.length - 1; cx < acc.length(); cx++, rp--) {
                    val = hexDigitChars.indexOf(acc.charAt(cx));
                    cx++;
                    val += 16 * hexDigitChars.indexOf(acc.charAt(cx));
                    ret[rp] = (byte)val;
              if (rev) {
                    byte tmp;
                    int fx, bx;
                    for(fx = 0, bx = ret.length - 1; fx < (ret.length / 2); fx++, bx--) {
                        tmp = ret[bx];
                        ret[bx] = ret[fx];
                        ret[fx] = tmp;
              return ret;
    Will that give you any more information to help me?

  • Problem Decrypting a text file using OpenPGP

    I am new in java cryptography. We have a file from vendor which needs to be decrypted. I am using the code below which gives me error after the bolded comment line. Below the code are the error messages that I get.
    Can anyone give me any assistance in telling me what is the problem.
    Thank you,
    Ed
    package cryptix.openpgp.examples;
    import cryptix.message.EncryptedMessage;
    import cryptix.message.KeyBundleMessage;
    import cryptix.message.LiteralMessage;
    import cryptix.message.Message;
    import cryptix.message.MessageException;
    import cryptix.message.MessageFactory;
    import cryptix.message.NotEncryptedToParameterException;
    import cryptix.openpgp.PGPSignedMessage;
    import cryptix.pki.KeyBundle;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.security.NoSuchAlgorithmException;
    import java.security.UnrecoverableKeyException;
    import java.util.Collection;
    public class Decrypt {
    public static void main(String[] args) {
    java.security.Security.addProvider(
    new cryptix.jce.provider.CryptixCrypto() );
    java.security.Security.addProvider(
    new cryptix.openpgp.provider.CryptixOpenPGP() );
    KeyBundle bundle = null;
    MessageFactory mf = null;
    try {
    FileInputStream in = new FileInputStream("secretkey.asc");
    mf = MessageFactory.getInstance("OpenPGP");
    Collection msgs = mf.generateMessages(in);
    KeyBundleMessage kbm = (KeyBundleMessage)msgs.iterator().next();
    bundle = kbm.getKeyBundle();
    in.close();
    } catch (IOException ioe) {
    System.err.println("IOException... You did remember to run the "+
    "GenerateAndWriteKey example first, right?");
    ioe.printStackTrace();
    System.exit(-1);
    } catch (NoSuchAlgorithmException nsae) {
    System.err.println("Cannot find the OpenPGP MessageFactory. "+
    "This usually means that the Cryptix OpenPGP provider is not "+
    "installed correctly.");
    nsae.printStackTrace();
    System.exit(-1);
    } catch (MessageException me) {
    System.err.println("Reading keybundle failed.");
    me.printStackTrace();
    System.exit(-1);
    EncryptedMessage em = null;
    try {
    FileInputStream in = new FileInputStream("C:\\Java\\enc_dec\\pgptestin.pgp");
    Collection msgs = mf.generateMessages(in);
    em = (EncryptedMessage)msgs.iterator().next();
    in.close();
    } catch (IOException ioe) {
    System.err.println("IOException... You did remember to run the "+
    "Encrypt example first, right?");
    ioe.printStackTrace();
    System.exit(-1);
    } catch (MessageException me) {
    System.err.println("Reading message failed.");
    me.printStackTrace();
    System.exit(-1);
    try {
         // System.out.println(em);
          // if fails after the below statement
    Message msg = em.decrypt(bundle,"password".toCharArray());
    PGPSignedMessage pmsg = (PGPSignedMessage)msg;
    LiteralMessage lmsg = (LiteralMessage)pmsg.getContents();
    FileOutputStream out = new FileOutputStream("C:\\Java\\enc_dec\\pgptestout.txt");
    out.write(lmsg.getTextData().getBytes());
    out.close();
    } catch (NotEncryptedToParameterException netpe) {
    System.err.println("Not encrypted to this key.");
    netpe.printStackTrace();
    System.exit(-1);
    } catch (UnrecoverableKeyException uke) {
    System.err.println("Invalid passphrase.");
    uke.printStackTrace();
    System.exit(-1);
    } catch (MessageException me) {
    System.err.println("Decrypting message failed.");
    me.printStackTrace();
    System.exit(-1);
    } catch (IOException ioe) {
              System.err.println("Writing the decrypted message failed.");
              ioe.printStackTrace();
              System.exit(-1);
    Here are the error messages:
    Exception in thread "main" java.lang.RuntimeException: NYI
         at cryptix.jce.provider.elgamal.ElGamalCipher.engineGetParameters(ElGamalCipher.java:120)
         at javax.crypto.Cipher.a(DashoA12275)
         at javax.crypto.Cipher.init(DashoA12275)
         at javax.crypto.Cipher.init(DashoA12275)
         at cryptix.openpgp.algorithm.PGPElGamal.decrypt(PGPElGamal.java:612)
         at cryptix.openpgp.packet.PGPPublicKeyEncryptedSessionKeyPacket.decrypt(PGPPublicKeyEncryptedSessionKeyPacket.java:189)
         at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMessageImpl.java:186)
         at cryptix.openpgp.provider.PGPEncryptedMessageImpl.decrypt(PGPEncryptedMessageImpl.java:315)
         at cryptix.openpgp.examples.Decrypt.main(Decrypt.java:118)
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    Message was edited by:
    eidasharif
    null

    You have to download and install something called "Unlimited strength jurisdiction policy files 5.0", is the solution por the NYI (Not Yet implemented) problem. It worked in my case (you can download the file from Sun, and read the readme to know how to install it)

  • Reading encrypted file using file adapter...

    Is it possible to read and write encrypted file using file adapter or if the file adapter is capable to encryption and decryption?

    what is the soa version you are currently running?

  • Encrypted document using Apple File Security won't open

    Back in 2000 I was using an iMac G3 with OS 9. I created a MS word document with MS 2000 and encrypted it using the Apple File Security. Since then I have upgraded to an iMac G5 with OS 10.4 and OS 9 for older applications.
    Since this is a legal document, I now need to decrypt it and I am not sure if I used a password to encrypt this document. I have opened up the key chain in OS 9 and, I don't see any saved passwords. I have opened up MS Word and don't see anything about a password for this application. When I open up the encrypted document it shows it to be over 300 pages, and when I select "Get Info" it shows that this document is unlocked, but I see on the desktop the document with a yellow key symbol.
    Is this a locked document? Why does it ask me for a password when I don't see any password in the key chain? What does the yellow key symbol mean?
    I really need to decrypt this document and their are a lot of programs that will decrypt a word document but you have to be running Windows and not OS X or 9.
    Can any one give me any suggestions on how I can decrypt this word document that was encrypted with Apple File Security.
    Thanks,
    DaisyMay

    Open Apple File Security and use it to decompress or decrypt the file. Any item can be encrypted with Apple File Security, and no other application will decrypt that format; the mechanism isn't the same as used in some Word versions. The Locked setting in the Get Info window controls something else. A password doesn't need to be stored in the keychain to be applied to an encrypted item; the file itself stores the encrypted password.
    (48403)

  • How to encrypt password using md5

    Hello all,
    I would like to generate a password and encrypt it using md5 with the current time(System's time) as the key, in Servlets.
    How do i go about doing this?
    Kindly guide.
    regards
    appu

    >
    I would like to generate a password and encrypt it
    using md5 MD5 is a non-reversible hashing, not an encryption!
    with the current time(System's time) as the
    key, If you use the current system time as the key for any encryption algorithm then how are you going to know what system time to use to decrypt?
    in Servlets.
    How do i go about doing this?Read up on encryption, the JCE and Servlets.

  • I am unable to open encrypted emails using webmail and a CAC reader.  It says "content can't be displayed because the S/MIME control isn't available."  I'm using a Macbook Pro with 10.10 OS and have tried both Safari and Chrome.

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

    I am using a Macbook Pro with OS X Yosemite 10.10.2.  I am unable to open encrypted emails using webmail.  I have verified my certificates are loaded in the keychain for my military common access card while using a CAC reader.  When I try to view the message it gives me the error saying "content can't be displayed because the S/MIME control isn't available." 

  • How do I access my iphoto library on time machine backup external drive using Lion, originally saved from old computer and system

    how do I access my iphoto library on time machine backup external drive using Lion, originally saved off old computer and system.  It's not letting me open the folder???

    Once again here's how to restore an iPhoto Library from Time Machine:

  • Can you preview an event in Ical, using Lion, by moving your mouse over the event?

    I have been trying to fougure out to problems in Ical, using Lion.  There does not seem to be anyway to preview an event accept by double clicing the event.  I also do not understand why there is not a drop down menu to choose the month of a new event or when you change an event.  I hope there is a way to change to a drop menu for the month, it is such a waste time to have to type the date in every time.  Any suggestions?

    The only problem is, that I can't move my mouse to the location I want. I heard you could use the Robot class for this, but it didn't work out as I wanted -I guess I screwed the code up-. So I'd like to know how I'm able to move my mouse, left click and right click, all at custom locations, given using JOptionPane. Could someone please write an easy example of all those things?Well, Robot is meant to generate mouse moves, mouse clicks, and key types, but consider this:
    - if you need this to implement a feature of an application, I find this suspicious (except if you are developing a tutorial feature such as "Help/Show me how to...").
    - if you need this to test an application, you'd better use a higher-level API, such as jfcUnit or Fest-Swing (tons of other exist), that enables you to simulate actions (and check results!) in higher-level terms, such as "click on this button" and "check this label is green" instead of "click at that position x,y", and "peek the pixel color").
    Good luck,
    J.

  • I have a Mac Pro using Lion, with a SSD for system.  Restored drive from backup.  Now logon password doesn't work.  Account password still works.  Changing password in user group preferences no longer works to change logon password.

    I have a Mac Pro using Lion, with SSD for system drive.  Drive stopped booting, but otherwise appeared healthy.  Restored from system backup.  Now drive seems to work properly, BUT my logon password no longer works.  Password OK for account; can access system preferences, and change user password there BUT logon still refuses to accept password.  No luck changing password for that account after adding new administrator account and logging on from that account.  Suggestions?  Thanks.

    If you redirect Accounts to another location (not on the Boot Drive) you need to direct them back there again after a restore.
    SystemPreferences > Accounts/User&Groups > ...
    ... Unlock the lock, then hold down Control as you click on an Account to get access to the Advanced Options pane.

  • Anyone unable to print from Mac Pro using lion 10.7.2 to HP LaserJet M1319f mfp

    I'm unable to print from Mac Pro using lion 10.7.2 to HP LaserJet M1319f mfp. The HP website says that the HP LaserJet M1319F MFP is compatible with Lion 10.7.2.  Every time I try to perform a Test print I get an Error msg.  I'm using driver version 1.3.0.261

    https://discussions.apple.com/message/23765195#23765195

  • What's the best App for cleaning/speeding up Mac using Lion?

    Can anyone recommend an App for cleaning/speeding up my iMac and Macbook Pro, both of which use Lion?
    Hard drive space is not really the issue, but I can't help feeling that my iMac is not as nippy as it used to be - my basic requirements are:
    1) Easy to use. I'm a competent user, but no guru.
    2) Will confirm details of what is is deleting, cleaning before it does it.
    3) Is reliable and won't crash or bugger-up my system.
    4) Actually works - as I said, don't really need to reclaim storage, but would like to speed up my mac
    5) Doesn't cost the earth.
    You thoughts would be much appreciated.
    Cheers all,
    Simon.

    Do the below and keep your boot drive below 50% filled and not more that 80%, that's about all you can do without a full reinstall of the OS.
    12: OnyX cache cleaning
    Category: OS X, application and User account software related
    Description: Gives OS X, application and user account caches a enema, lets then rebuild again new, resolves strange and unknown issues based on cache files being corrupted .
    Only cache files are removed, not users data, files, programs or OS X. Some settings will be set back to normal in Finder and other locations. Spotlight will rebuild a new database.
    Problems possibly resolved: Varied: Flash install issues, Dock/Finder/File issues, "ghost files", performance and privacy related
    Instructions:
    Apple doesn't supply a easy method for the user to self clean the caches, thus we have to turn to third party software.
    Use the free OnyX matching your OS X version and run all the initial checks, stop if any give a warning, you have a bigger problem. See #4
    Run though all the Maintenance and Cleaning aspects (except don't delete the log files) and reboot at the end (must)
    You must be through running all the maintenance and cleaning aspects as this is a "catch all" method and any number of corrupted caches may be responsible for your issues.  You need to REBOOT at the end of using OnyX. Canceling the in-between reboot requests is fine.
    Read Step #13 and  perform the Verify > Preferences before rebooting at the end of using OnyX.
    Get the free OnyX here:  http://www.macupdate.com/app/mac/11582/onyx  More info:  https://en.wikipedia.org/wiki/OnyX
    Just a few of OnyX many successes:
    https://discussions.apple.com/message/18377471?ac_cid=sa123456#18377471
    https://discussions.apple.com/message/18421933?ac_cid=sa123456#18421933
    https://discussions.apple.com/message/18579487?ac_cid=sa123456#18579487

  • I have a MacBook Pro running Lion. I need to use Lion to run my Dragon. I would like to partition my drive to use Maverick for everything but the dictation software. I'm a new pie to apple

    I have a MacBook Pro running Lion. I need to use Lion to run my Dragon. I would like to partition my drive to use Mavericks for everything but the dictation software. I'm a newbie to apple

    To resize the drive do the following:
    1. Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    After the main menu appears select Disk Utility and click on the Continue button. Select the hard drive's main entry then click on the Partition tab in the DU main window.
    2. You should see the graphical sizing window showing the existing partitions. A portion may appear as a blue rectangle representing the used space on a partition.
    3. In the lower right corner of the sizing rectangle for each partition is a resizing gadget. Select it with the mouse and move the bottom of the rectangle upwards until you have reduced the existing partition enough to create the desired new volume's size. The space below the resized partition will appear gray. Click on the Apply button and wait until the process has completed.  (Note: You can only make a partition smaller in order to create new free space.)
    4. Click on the [+] button below the sizing window to add a new partition in the gray space you freed up. Give the new volume a name, if you wish, then click on the Apply button. Wait until the process has completed.
    You should now have a new volume on the drive.
    It would be wise to have a backup of your current system as resizing is not necessarily free of risk for data loss.  Your drive must have sufficient contiguous free space for this process to work.

Maybe you are looking for

  • How can I print to a printer that is not an AirPrint printer?

    I gave a kodak printer is there any way I can print with out the use of a different ap.?

  • Scanning from my iphone 4 and saving to PDF file on to laptop later

    how can i scan from my iphone 4 and create a pdf file to store on my laptop my wireless printer is photosmart 6510

  • How to remove ActiveX control on my website

    Hi~ When I create a Website, I used a behavior (pop-up menu) function on my main menu bar. When I run the webpage with IE, it shows ActiveX control message on the top of the webpage showing "This site might require the following ActiveX control How c

  • Texts with T-Mobile Device

    I have tried sending picture and texts to a friend of mine with T-mobile, but I can only receive their texts. If I send a message it appears to send without being received. I do not have this problem with any other contact. How do I fix it?

  • Can't Un-install Quicktime

    I'm having trouble un-installing my quicktime. When I try to remove it, my installshield won't do it, and trying to update leads to an error 1714, and an error 1603. The first one say it can't find my .msi file for quciktime, and the other says i nee