« Linkage | Main | Functional »

09 November 2004

Database Encryption

Came across this while google-surfing:

<quote>
Disk space is an issue with database encryption because encrypted fields are larger than unencrypted fields. They're a little larger for textual data and a lot larger for numeric and binary data--data in a numeric field, for example, gets encrypted one byte at a time and grows to two bytes when it's encrypted. [...]

Most database-encryption mechanisms present encrypted data as characters, one character per hexadecimal digit. That's a big increase: When encrypted, a 4-byte integer becomes an 8-byte character string. Most encryption algorithms use 64-bit DES, so your 4-byte (32-bit) integer becomes a string of 16 encrypted characters.
</quote>

The mind boggles.

SQLcrypt operates at the storage layer and cares not whether the data is textual or numeric at the SQL layer. One byte of plain text <=> one byte of cipher text.


Posted by ngps at 00:22 | Comments (3) | Trackbacks (0)
Comments
Re: Database Encryption

Do you have the URL for that quote? For most block cipher, the cipher text should be the same size as the clear text, even if the encryption is done at the record level. And that applies to DES as well.

It makes more sense to say that plain text would use more storage space as the cipher text does not compress well. But I guess does not apply in your case where for SQLcrypt encryption is done at the storage level.

Posted by: scotty at November 09,2004 13:30
Re: Database Encryption

Google for it - I think you will find several pieces purportedly by different authors expressing similar sentiments.

A block cipher that pads will add bytes if the plaintext is not of the exact size.

(Tauto what? Me? Nah... ;-)

Posted by: Ng Pheng Siong at November 16,2004 23:23
Re: Database Encryption

[link deleted]

ngps: I left the link on for a while, since it was on topic for this post, but the entire presentation of this thing - nothing but links, one of which pointed to your corporate site home page - smacked of spamming to me, so I've zapped the links.

Posted by: ulf mattsson at December 12,2004 12:55
Trackbacks
Please send trackback to:http://sandbox.rulemaker.net/ngps/161/tbping
There is no trackback.