Password Management

For the past 10 years I’ve been having a headache managing passwords for websites. I had about 7 levels of passwords and I could never decide which one to use on a website. And even once I decided, I would usually type them all trying to log in. If they logged my password attempts now they can go edit my Facebook profile, watch my Hulu shows, and buy stuff with my PayPal account (true story).

So, I’ve decided to generate a new random password per website and put all my usernames and passwords into an encrypted file on my hard drive. My process was

# gpg passwords.gpg
# vim passwords
# gpg -c passwords
# rm passwords

This works fine, but sometimes I forget the last 2 steps and have a fully decrypted file sitting there… yeah… and the gpg -c would ask for my password 2 times in addition to the first gpg, so I end up typing it 3 times in total.

Enter gpg-encrypt. It’s just a simple shell script that reads in an encrypted file, edits it, then saves it back in an encrypted format.

Every time I have to register for a new website I:

  1. Get a good random password
  2. Run ./gpg-encrypt
  3. Add the new information. I keep my file in YAML format incase I want to read it with a program later. Example:
    delicious.com : {
        username : ptarjan,
        password : WqgyzN9bJ6Pm
    }
    
  4. Leave the editor and it goes back to being encrypted.

If I have to log in, I just do the same steps as above, but don’t add anything. I can search using my editor for the domain of the site I’m looking for.

I backup my passwords.gpg file every time I add a new password, to another computer incase my linux box dies.

So, I hope this new password management works better for me than the last system. Anyone have any better solutions to this painful problem? And don’t say openid, until 80% of the sites I visit support it 🙂

Advertisements

Password Management

For the past 10 years I’ve been having a headache managing passwords for websites. I had about 7 levels of passwords and I could never decide which one to use on a website. And even once I decided, I would usually type them all trying to log in. If they logged my password attempts now they can go edit my Facebook profile, watch my Hulu shows, and buy stuff with my PayPal account (true story).

So, I’ve decided to generate a new random password per website and put all my usernames and passwords into an encrypted file on my hard drive. My process was

# gpg passwords.gpg
# vim passwords
# gpg -c passwords
# rm passwords

This works fine, but sometimes I forget the last 2 steps and have a fully decrypted file sitting there… yeah… and the gpg -c would ask for my password 2 times in addition to the first gpg, so I end up typing it 3 times in total.

Enter gpg-encrypt. It’s just a simple shell script that reads in an encrypted file, edits it, then saves it back in an encrypted format.

Every time I have to register for a new website I:

  1. Get a good random password
  2. Run ./gpg-encrypt
  3. Add the new information. I keep my file in YAML format incase I want to read it with a program later. Example:

    delicious.com : {
    username : ptarjan,
    password : WqgyzN9bJ6Pm
    }

  4. Leave the editor and it goes back to being encrypted.

If I have to log in, I just do the same steps as above, but don’t add anything. I can search using my editor for the domain of the site I’m looking for.

I backup my passwords.gpg file every time I add a new password, to another computer incase my linux box dies.

So, I hope this new password management works better for me than the last system. Anyone have any better solutions to this painful problem? And don’t say openid, until 80% of the sites I visit support it 🙂

Posted in geek, linux. 6 Comments »

St. Maarten/Martin

Trains, Trains, Trains, Trains, Trains, Trains, Planes, Planes, and an Automobile

We left the day before my birthday after work. To get to the airport, we took :

  1. VTA from San Jose to Mountain view
  2. Express Caltrain to somewhere near the airport
  3. Normal Caltrain about 2 stops to Millbrae
  4. BART to some transfer station
  5. Another BART to the Airport
  6. SFO train to the terminal
  7. Airplane to Charlette, NC
  8. Airplane to Phillipsburg, St Martin
  9. Rent-a-car to our hotel

I ended up sleeping in a great rocking chair at the airport while charging my Nintendo DS.

A red-eye is probably not the best way to spend a birthday, but it did the job and we were in paradise in time to enjoy a lobster dinner for my birthday.

A Topless Beach – Europe definitely got it right

The second day we swam a bit in our “∞ pool”

and then took off to Orient Beach. I was briefed by Michelle that part of it would be a nude beech. She forgot to inform to me that it was 98% old fat men, and the other 2% older fat women. Lest I say that I was disappointed and chose to not disrobe in these circumstances.

In dismay we trekked to the clothed part of the beach to discover that it was “Europe” rules for women going topless, and indeed the eye candy was much more enjoyable. Michelle told me that etiquette dictated for me to not take any pictures, so you guys just get to imagine.

Being extra protected from the UV rays @ Orient Beach

Up Close and Personal with Airplanes

Heading to Maho Beach.

Sunset beach bar

We went to Sunset Bar, to have a nice drink and then

Extra light airplane!

Trying to touch the plane

we watched the planes fly a few meters over our heads. Very cool :

We got back just in time for the “welcome party” which was an open bar. I was drinking “Wipe Me Out”s and after 4, I was VERY much wiped out. We stumbled back to our place and crashed hard for the night.

French Onion Soup + Escargot

Switching to the French side of the island, was drove to Margiot. ALL the road signs were in French, all the people spoke French, all the food was French. It was GREAT! The Dutch side had converted to an American style, but the French had really kept their culture. And it was magnifique! Sadly the rain followed us around the island, but it didn’t stop us from having a great time.

Marigot -- French Side

We had some AMAZING authentic French food on the beach and I got to practice quite a bit of my high school French. It was amusing to listen to all the people around us speaking fluent Parisian French and for me to try and join in :).

Restaurant @ Friar's Bay

After our fill we headed to “Happy Bay.” It started to rain a bit as we started to walk up, but we looked at each other and decided to go for it. It was a 10 minute hike up and ended in a beautiful view. Turning around, it IMMEDIATELY started to pour on us forcing us to run down the hill and jump into the car. Praying that it didn’t leak we sat and waited it out enough for the threadbare tires to grip us enough to get home.

Friar's Bay

Surf and Jerk

Mmmmm... the most delicious Guavaberry colada!

Addicted to the great food, we headed to the beach for a french lunch, and guavaberry coladas. Then to Grand Case (the Caribbean’s gourmet capital) to find … what else, crepes! After putting on our extra 5 pounds we went to Pineapple Pete’s for a great meal.

We shared a their famous lobster thermadore and a jerk chicken sandwich (hence the corny title for this day).

I’m on a Boat

We headed to the French side again this day to take a boat out to an island just off the Orient Beach. Before we stopped off at a truck to have lunch. They had a ton of authentic French food, (evan a Croque-monsieur that we had at our cooking class), but we opted to not ruin our french experience from the back of a van and got some hamburgers.

I'm on a boat -- SNL style!

It was gorgeous out there and we took a plethora of pictures.

Walking on the water

Falling ... over
Lobster fest!

They kept their restaurant lobsters out in the ocean and when someone ordered one they would pull in the cage and lift them out.

In Search of Crepes

More H2O football

For our last day we went back to Orient beach and played a little football in the waves.

mmmmm... impossible à résister

Of course we had to find an authentic French crepe to end our great vacation.

It was a wonderful birthday trip. If you want to see any other pictures, feel free to check out the full set of pictures.

St. Maarten/Martin

Trains, Trains, Trains, Trains, Trains, Trains, Planes, Planes, and an Automobile

We left the day before my birthday after work. To get to the airport, we took :

  1. VTA from San Jose to Mountain view
  2. Express Caltrain to somewhere near the airport
  3. Normal Caltrain about 2 stops to Milpitas
  4. BART to some transfer station
  5. Another BART to the Airport
  6. SFO train to the terminal
  7. Airplane to Charlette, NC
  8. Airplane to Phillipsburg, St Martin
  9. Rent-a-car to our hotel


I ended up sleeping in a great rocking chair at the airport while charging my Nintendo DS.

A red-eye is probably not the best way to spend a birthday, but it did the job and we were in paradise in time to enjoy a lobster dinner for my birthday.

A Topless Beach – Europe definitely got it right

The second day we swam a bit in our “∞ pool”

and then took off to Orient Beach. I was briefed by Michelle that part of it would be a nude beech. She forgot to inform to me that it was 98% old fat men, and the other 2% older fat women. Lest I say that I was disappointed and chose to not disrobe in these circumstances.
In dismay we trekked to the clothed part of the beach to discover that it was “Europe” rules for women going topless, and indeed the eye candy was much more enjoyable. Michelle told me that etiquette dictated for me to not take any pictures, so you guys just get to imagine.
Being extra protected from the UV rays @ Orient Beach

Up Close and Personal with Airplanes

Heading to Maho Beach.
Sunset beach bar
We went to Sunset Bar, to have a nice drink and then
Extra light airplane!
Trying to touch the plane
we watched the planes fly a few meters over our heads. Very cool :

We got back just in time for the “welcome party” which was an open bar. I was drinking “Wipe Me Out”s and after 4, I was VERY much wiped out. We stumbled back to our place and crashed hard for the night.

French Onion Soup + Escargot

Switching to the French side of the island, was drove to Margiot. ALL the road signs were in French, all the people spoke French, all the food was French. It was GREAT! The Dutch side had converted to an American style, but the French had really kept their culture. And it was magnifique! Sadly the rain followed us around the island, but it didn’t stop us from having a great time.
Marigot -- French Side
We had some AMAZING authentic French food on the beach and I got to practice quite a bit of my high school French. It was amusing to listen to all the people around us speaking fluent Parisian French and for me to try and join in :).
Restaurant @ Friar's Bay
After our fill we headed to “Happy Bay.” It started to rain a bit as we started to walk up, but we looked at each other and decided to go for it. It was a 10 minute hike up and ended in a beautiful view. Turning around, it IMMEDIATELY started to pour on us forcing us to run down the hill and jump into the car. Praying that it didn’t leak we sat and waited it out enough for the threadbare tires to grip us enough to get home.
Friar's Bay

Surf and Jerk

Mmmmm... the most delicious Guavaberry colada!
Addicted to the great food, we headed to the beach for a french lunch, and guavaberry coladas. Then to Grand Case (the Caribbean’s gourmet capital) to find … what else, crepes! After putting on our extra 5 pounds we went to Pineapple Pete’s for a great meal.

We shared a their famous lobster thermadore and a jerk chicken sandwich (hence the corny title for this day).

I’m on a Boat

We headed to the French side again this day to take a boat out to an island just off the Orient Beach. Before we stopped off at a truck to have lunch. They had a ton of authentic French food, (evan a Croque-monsieur that we had at our cooking class), but we opted to not ruin our french experience from the back of a van and got some hamburgers.
I'm on a boat -- SNL style!
It was gorgeous out there and we took a plethora of pictures.
Walking on the water
Falling ... over
Lobster fest!
They kept their restaurant lobsters out in the ocean and when someone ordered one they would pull in the cage and lift them out.

In Search of Crepes

More H2O football
For our last day we went back to Orient beach and played a little football in the waves.
mmmmm... impossible à résister
Of course we had to find an authentic French crepe to end our great vacation.

It was a wonderful birthday trip. If you want to see any other pictures, feel free to check out the full set of pictures.