Calm down, mate! 🙂
I don't believe any of your pictures are lost and I'll show you how to restore them later on.
Read carefully and don't hesitate to ask questions. More importantly, I'd recommend you solve your other issues first.
I think we need to clarify a few things...
As far as I know,
it is impossible to lock a single iPhoto album. One can only "lock" an entire iPhoto library.
By default, iPhoto stores all it's data (pictures, albums, ratings...) in a big folder called "iPhoto Library" (your
homefolder/Pictures/iPhoto Library). (It doesn't have to be called "iPhoto Library" though.) It is possible to have multiple, absolutely independent libraries. If you wanted to secure a certain number of photos, you'd have to create a separate iPhoto Library and figure out a way to "lock" the new iPhoto library folder. (Which is exactly, what Lori recommended.)
Creating a new library folder is fairly easy. (Close iPhoto.) Hold down the "option" (=alt) key while relaunching iPhoto. A new window pops up asking you to open an existing Library folder or to create a new one. Since you've already created a new library folder using a slightly different method, we can go ahead and
switch between your existing libraries to make sure you didn't loose any pictures. Click "choose library" and navigate to the Pictures folder within your home(=user) folder. Your old library should still be named "iPhoto Library". Select it and hit "Open". You should see your old pictures, except for the ones you've moved to a new library.
Since pressing the option key isn't necessarily the nicest way to switch between iPhoto libraries, a nice guy has developed
iPhoto Buddy, an utility to manage different libraries. It doesn't interfere with iPhoto or your pictures in any way, other than telling iPhoto which library folder to open. So far, iPhoto buddy does only know about your new, confidential library, which means you'll have to add your old one to the list: Open iPhoto Buddy, click the "+" from the lower left corner, navigate to your Pictures folder, select the old iPhoto Library and hit "Choose". To switch between your libraries, select it from the iPhoto Buddy list and press the iPhoto symbol on the right.
By now, we've managed to find an easy way to switch between libraries.
What about locking your confidential files? Basically, there are two different methods and it all comes down to the level of security you need.
iPhoto Buddy gives you the option to "lock" an individual library. This, however, does only affect iPhoto Buddy itself. The password is absolutely useless as soon as iPhoto knows, which library to open. Anybody can circumvent iPhoto Buddy by holding down the option key as described before, which leads to the question, what are you trying to achieve? Do you just want to separate your pictures, hide them from your 4 year old son, who hasn't heard about the magical option key yet, or are you trying to actually secure them? In that case, there's no way around file encryption since - with physical access to the machine - any software implementation can be broken more or less easily. Encrypted data is -guess what- stored on your hard drive in an encrypted form. You must have the password in order to read it. Mac OS X uses the popular AES 128 bit standard for those kinds of things. Assuming you're using a long password, that couldn't be guessed or found in a dictionary, it would -as of today- be impossible to retrieve your data. For your own protection, you might want to keep an unencrypted backup on CD / DVD. (Always back up your data. See Dr. Smoke's guide on
Backup and Recovery. Other popular backup utilities can be found using the forum search function.)
I'm not arguing against file encryption. In fact, I'm a strong advocate of tools like FileVault, GPG etc. I just wanted to inform you about the risk of file encryption.
So how do you encrypt your iPhoto Library?
You'll have to put it inside an encrypted, virtual disk image. Open Applications/Utilities/Disk Utility, click "new image", select an appropriate max. size (make sure you've enough space for future pictures), select Encryption "AES" and Format "sparse image" (this will allow the image to grow up to the maximum size.) Enter a name and put it i.e. in your Pictures folder.
When entering your password, disable "store in keychain". Once mounted, your disk image will appear as removable media on your desktop as well as the Finder sidebar. Locate your new (!!!) iPhoto Library folder and drag it into the disk image. (You can delete your unencrypted folder as soon as we've verified everything.) Open iPhoto Buddy, (remove the unencrypted version from the list by selecting it and pressing the delete key), hit "+" and add your confidential library inside your disk image to the list. Afterwards, you should be able to select and open it using the iPhoto button on the left.
To "lock" your files, quit iPhoto, switch to Finder and unmount (eject) your disk image by pressing the eject symbol from the Finder sidebar or -from the desktop- dragging the white disk symbol into the trash.
Next time you launch iPhoto Buddy, you'll be prompted for the disk image password.
Try switching back and forth between your confidential library as well as your old one.