Database Automatic Encryption (from WebDNA 8.5)
numero = 1034Security: there is no seed to rely on, as if someone has access to the disk, he would also have access to the seed.
The encrypted databases can still use a .hdr file, but it has to be plain text. Otherwise you can just let WebDNA encrypt the header in the .db file by running [addfields] on an empty "_encrypted.db" file.
[writefile test_encrypted.db][/writefile][addfields db=test_encrypted.db]zip=98765&city=Washington[/addfields][append db=test_encrypted.db]zip=12345&city=Boston[/append]Do a [flushdatabases] and it will result in a small file full of gibberish on your hard drive.Writing out a 150MB AES encrypted database takes about 3 seconds. Most of that time is spent waiting on disk IO.You can use [spawn] to save these seconds:
[spawn][flushdatabases][/spawn]or
[spawn][commitdatabase db=test_encrypted.db][/spawn]The idea behind it is to transparently encrypt (using Government Grade AES) a database just by including "_encrypted" in the database name. The decrypted database will never appear on disk, only the encrypted copy. However, it is decrypted on the fly when you open the database in RAM, and it resides unencrypted in the RAM of the computer, until you write back your database to disk, where the older version will be entirely overwritten.
Security: there is no seed to rely on, as if someone has access to the disk, he would also have access to the seed.
The encrypted databases can still use a .hdr file, but it has to be plain text. Otherwise you can just let WebDNA encrypt the header in the .db file by running [addfields] on an empty "_encrypted.db" file.
[writefile test_encrypted.db][/writefile]
[addfields db=test_encrypted.db]zip=98765&city=Washington[/addfields]
[append db=test_encrypted.db]zip=12345&city=Boston[/append]
[spawn][flushdatabases][/spawn]
[spawn][commitdatabase db=test_encrypted.db][/spawn]
DOWNLOAD WEBDNA NOW!
A list of available libraries for WebDNA...
WebDNA ModulesA list of the currently available modules...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
Tips and TricksA list of user-submitted tips ...
F.A.QA compilation of some user's questions...
Download WebDNA ApplicationsWebDNA applications...
Triggers provide a mechanism for doing something on a regular timed basis...
[exclusivelock]Prevents other threads from simultaneously accessing a group of databases...
Web Hosting Control Panels and WebDNAWeb Hosting Control Panels are becoming prevelant in the industry...
[convertchars][url]...
[array]Array Operation...
[showif][showif Comparison]Show This HTML[/showif]...