Description :

This module protects users email address, encrypting them into the database. This module doesn't alter user experience.
In case of database hacking, this sensitive data would be useless for the hacker.

It uses the AES module API, providing the encryption method.
Easy to use :

  • install the DataBase Email Encryption (dbee) module : the encryption will be enabled for all users email address.
  • Uninstall it or disable it : it will disable the users email address encryption for all users email address.

LINK : http://drupal.org/sandbox/thedut/1209196
Thread for promoting the dbee module to a full project.

CommentFileSizeAuthor
#15 dbee.jpg141.33 KBthedut
dbee.zip25.69 KBthedut

Comments

patrickd’s picture

- You may create a branch for it (eg.: 6.x-1.0-dev)
- The date of your commits will be saved automatically, you should rather describe what you did.
- Your module will be packed into the dbtree directory later automatically, you better move your files from ./dbtree to your git root ./
- Also licence informations will be added automatically later, you have to remove your licence file

- $Id$ tagging is deprecated; GIT doesn't need it, you should simply remove it
- version = "6.x" this is for your modules version not drupals, git will do that for you too
- the .info file is no php file, you don't need php tags in it
- "some text" formatting is also not necessary in your info file; you can simply write: const_name = value text

Some code parts are well commented others are not, imho I think a well commented code is the best documentation ;-)

I was never into d6 so I can't give you a detailed code review

cheers

patrickd’s picture

Status: Needs review » Needs work
thedut’s picture

Hello pratrickd,

Thank you for your answer.
It is the first time I use a git software.
I'll apply your advises within 2 weeks (I'm in vacation right now) and submit my module again.

thedut’s picture

Status: Needs work » Needs review

Here is the corrected version, needing review please.

alpp’s picture

great work indeed. will there be a d7 version?

thedut’s picture

Yes, there will be a D7 version. I'm working on it.
Php Code will be quite different than the D6 version because I will use hooks on the Database abstraction layer (D7 specific features), that why compatibility between my module and custom modules will always be functionnal on the d7 version.
I'm actively working on other personal modules. I will probably release the d7 version within 2 or 3 monthes.

klausi’s picture

Status: Needs review » Needs work

* 6.x-1.0 should not be a git branch, it should be a git tag
* the module files should be in the root of the repository
* remove all old CVS $Id tags, not needed anymore
* Remove LICENSE.txt, this is added automatically by drupal.org packaging
* text in README.txt should not exceed 80 characters
* "changelog.txt" should be named "CHANGELOG.txt"
* info file: version is discouraged, this is added automatically by drupal.org packaging
* "@param noting" don't document that

thedut’s picture

ok I'm going to fix that.

thedut’s picture

Status: Needs work » Needs review

Ok, I should be ok now.
Thanks for the time you spend reviewing this module

minnur’s picture

Status: Needs review » Needs work

Hi Julien

1. "if ($mails_row['count'] > 1)" always use "{}" around if/else statements, even if it is just one line.
This often leads to bugs if you add lines later.

2. If you are implementing a hook_(), please add proper comment to it.
add "Implementation of hook_perm()" comment to dbee_perm()

3. I think you should remove comments like

/**
#-------------------------------------------------------------------------

administration functions

#-------------------------------------------------------------------------
*/

Please read comment formatting conventions document http://drupal.org/node/1354

Thanks,

Minnur

thedut’s picture

Status: Needs work » Needs review

Hi minnur,

after reading the comment formatting conventions document, I format ALL comments !
The whole documentation should be formated correctly now.

Here is the screenshot associated to this module (phpMyadmin screenshot) :
http://www.flickr.com/photos/68620474@N07/6242408552

minnur’s picture

Status: Needs review » Needs work

Hi Julien,

You almost there!
Please run your code through Coder module (set the servility level to "minor (most)").

Thanks,

Minnur

thedut’s picture

Status: Needs work » Needs review

I guess it may be my last commit . . . . . . . before promoting the dbee module to a full project !

minnur’s picture

Status: Needs review » Needs work

Hi Julien,

I am sorry, but I found one more thing.

* I noticed that you are working in the "master" branch, you should be working version specific branch.
- Moving from a master branch to a version branch - http://drupal.org/node/1127732
- Release naming conventions - http://drupal.org/node/1015226

Please make this change; commit and push your code to specific branch (in your case this should be 6.x-1.0, the one you already have).

Thank you,

Minnur

thedut’s picture

Status: Needs work » Needs review
StatusFileSize
new141.33 KB

Hi Minnur,

Thanks for your fast anwser.
Notice on the post #7 was confusing. I made some changes : finally :
- I delete the 6.x-1.0 branch
- and create the 6.x-1.x branch pushing all module files
- and apply on it the 6.x-1.0 tag.
I delete all files stored into the master branch

klausi’s picture

Status: Needs review » Reviewed & tested by the community
  • dbee.module: @file doc block missing, see http://drupal.org/node/1354#files
  • "//check if a sensitive case email exist.": There should be a space after "//" and all comments should start capitalized.
  • Remove the translations folder, translations are now done on localize.drupal.org

But these are just minor nitpicks, I think this is RTBC. Now while we are waiting for the access grants to create full projects would you be so kind to do a review of the other applications pending? Just pick one from this list: http://drupal.org/project/issues/projectapplications?status=8

thedut’s picture

I have just made thoses changes.
I wil look at the localize.drupal.org site to upload the french translation on the dbee module.
It's a great honnor proposing me to review some applications, I will do it as soon as possible, within 1 or 2 days.

thedut’s picture

Hi klausi,

I manage to help someone (at least I hope !)

greggles’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for your contribution, thedut! Welcome to the community of project contributors on drupal.org.

I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best.

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

As you continue to work on your module, keep in minde: Commit messages - providing history and credit and Release naming conventions.

thedut’s picture

Hello Greggles,
Thank you !! At least, I'm published during my livetime !
Thanks to patrickd, alpp, klausi and minnur to !
I will go on reviewing other projects.

To be continued on :

http://drupal.org/project/dbee . . .

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.