Syndicate content

Topic “encryption”

By zzolo
2009, August 8 - 2: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.

Haiku and a Portrait

The Uncertainty Principle
The last moments of 2009

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

Recent Books

Freakonomics Cover (cherryhillbooks.com/images/books/freakonomics.jpg)
Development as Freedom cover by Cover Browser (http://www.coverbrowser.com/image/bestsellers-2007/2013-1.jpg)
Pro Drupal Development: Second Edition Cover from Cover Browser (http://www.coverbrowser.com/image/bestsellers-2007/3532-1.jpg)
Pro JS Techniques Cover from eBook Networking (http://www.ebooknetworking.com/books/159/059/big1590597273.jpg)
Snow Crash Cover taken from CyperPunkReview (http://www.cyberpunkreview.com/images_books/SnowCrash.jpg)
Designing Interfaces Cover Image from textbooksrus.com
Cover image of Dreaming in Code (taken from Amazon)

The Tweet of Zzolo

  • @webchick Drupal is Ned Flanders: holds the moral high ground, but still marrys a floozie in Vegas.
    2 days 1 hour ago
  • #drupal #openlayers http://drupal.org/node/733830 released last night! Great work @tmcw http://drupal.org/node/733830
    5 days 7 hours ago
  • Personal weekend code sprint for #drupal #openlayers (and maybe some others) begins…. (avocado snack break) …. now!
    5 days 7 hours ago
  • Just got my first "Browser Choice" from Windows. Stupid in so many ways. (I am not choosing Internet Explorer, though)
    6 days 4 hours ago
  • Now that the @ie6funeral is over, it's just a matter of time until #ie6zombie rises (to the tune of MJ's Thriller). Buying shotgun now.
    6 days 12 hours ago

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