Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Just found this
http://drupal.org/project/encrypted_text
It is for D4 though :)
It would be cool though to have a checbox on CCK Text field config screen to encrypt submissions. :)
Perhaps it would make the module more popular as well, since it would shield users from any programming.
Comments
Comment #1
giorgio79 CreditAttribution: giorgio79 commentedAnd a new one for D7
http://drupal.org/project/encset, it seems like this is a field integration, quite nice.
Comment #2
jdwfly CreditAttribution: jdwfly commentedI actually created a module that integrates into this module to encrypt cck fields for D6. Never committed it though, but if there was enough interest I might put it in my sandbox.
Comment #3
giorgio79 CreditAttribution: giorgio79 commentedWould love it. I think the adoption of these encryption modules is hindered by their developer focus. As simple as a checkbox on CCK fields to encrypt them would give them some incentive to grow :)
Meanwhile though I had to come up with sg for my site, and I put up a little example for others here
#1143106: Usage example for encrypting and decrypting fields
Comment #4
jdwfly CreditAttribution: jdwfly commentedBasically that is what my module did. Just a simple check box on the configuration page for a field and you could either encrypt or not. What I did not do was work out particulars about converting previous data from encrypted to decrypted and so forth. I would need some feedback about what people think should happen to that data that is already there.
Comment #5
giorgio79 CreditAttribution: giorgio79 commentedIf we expose encrypt and decrypt functions as action hooks, they can be included in a VBO, and users can put their site in offline mode, do a backup and encrypt existing node fields.
Also, this could be enabled for text cck types I guess.
Comment #6
zzolo CreditAttribution: zzolo commentedGood thoughts. I would love to see this happen. My time for this module is pretty slim these days.
My question though, is this: Say a user is inputting data, and chooses to "Encrypt" it. From the user's perspective, is user assuming the data will be encrypted only to the user, or only to the site. Meaning that the former would require the user to enter in a password for the encryption. If I was given the option to encrypt data, I would assume it was encrypted only to me, not to the site.
Comment #7
giorgio79 CreditAttribution: giorgio79 commentedI think these are two different use cases.
First one is where all instanced of a CCK field are encrypted with a key stored somewhere by the webmaster like the http://www.drupal.org/project/aes module
The 2nd, is what zzolo just described, that is enabling a user to protect a field by entering their password, and using that as key to encryption (as I understand). I saw a module that takes care of the password stuff here: http://drupal.org/project/protected_node, although I dont see any encryption in the db.
I guess both options have merit :)
Comment #8
jdwfly CreditAttribution: jdwfly commentedModule I created is in my sandbox.
http://drupal.org/sandbox/jdwfly/1085708
Comment #9
giorgio79 CreditAttribution: giorgio79 commentedGreat stuff, works fine for me!
This is the missing piece from the Encryption API module :)
Comment #10
jdwfly CreditAttribution: jdwfly commentedIt's definitely not complete, but it does work. Like I said before if you go changing from encrypted/decrypted midstream after data has already been input you will have some data encrypted and some not. It doesn't decrypt or encrypt any data that is already in the database, just new data. It is something you set once and leave it.
Comment #11
theunraveler CreditAttribution: theunraveler commentedI would encourage you to release this as a contrib module separate from Encryption API.
As indicated by the name of the module, Encryption API is meant to be an API module. It is meant to provide low-level functionality that other modules/code can use. It is not designed to cater to one specific use case.
Comment #12
theunraveler CreditAttribution: theunraveler commentedComment #13
giorgio79 CreditAttribution: giorgio79 commentedAn API is a great thing, but I guess integration with CCK in D6 and Fields in D7 would cover like 80% of the use cases?
Comment #14
crossmedia CreditAttribution: crossmedia commentedYou may integrate Encrypt module with CCK fields as well, as i done for one of my client and you can visit here http://drupal.org/node/754466