Syndicate content

Topic “encryption”

By zzolo
2009, August 8 - 3:19am

Friday Night Encryption : The scratching of a long time itch and securing data the Drupal way

Every once in awhile I will have a task that involves storing a password in the Drupal database, maybe so that a module can connect to a server or service. Unfortunately it is not secure to store sensitive information in the database unless it is encrypted. So tonight I wrote and released the Encrypt module

One-Way Encryption

Drupal core does store passwords in the database: the user passwords. But this is one-way encryption, or creating a hash, meaning that once encrypted there is no built-in way to retrieve the data that was hashed. You can only compare hashes, hence why Drupal does not allow you to retrieve a lost password, simply it offers the ability to reset it.

Two-Way Encryption

Two-way encryption, or just encryption is the idea of taking a message, altering it so that it is unrecognizable usually with some sort of key, then sending it someone that also shares that key and can decrypt the code to get the original message. There are many methods of encryption, and it's hard to know what method is best.

Why do we need encryption? Well, let's take for instance the example above. I want the user to enter in their password for an FTP site so that I can get some files from it once a day. But, I don't want the user to have to come to the site and enter in their password every day to do this. Ideally I want to be able to store that password and retrieve it when I need it. This is where encryption comes in.

Recent Books

Haiku and a Portrait

The Uncertainty Principle

Floating on the air
everywhere and somewhere,
nowhere, only here.

The Tweet of Zzolo

  • Great exhbit of Picasso and Klee at the Zebtrum Paul Klee. Still the best tunes for an art museum: Mirah
    21 hours 30 min ago
  • The hype is so right. This presentation from about #drupal Groups by Amitaibu is so awesome! http://bit.ly/94fHXn
    2 days 8 hours ago
  • Fact: I am so not good at not taking on too many things at once. Careful if I tell you I can do something. :)
    3 days 2 hours ago
  • @seutje That sounds positive. I am still of the opinion that iTunes is a bad piece of software I am forced to used given decent hardware.
    3 days 3 hours ago
  • Awesome. Thanks Apple for making the already terrible iTunes interface even worse.
    3 days 3 hours ago

Twitter Icon Flickr Icon LinkedIn Icon Facebook Icon Drupal Association, Individual Member icon