d8-contrib-modules / file_encrypt

DEPRECATED - D8 File Encrypt moved to Drupal.org
https://www.drupal.org/project/file_encrypt
0 stars 2 forks source link

More detailed general architecture for decryption of file content #1

Closed dawehner closed 8 years ago

dawehner commented 8 years ago

Here is a more specific architecture for decrypting file content and making it flexible within Drupal.

In order to make streaming as easy as possible one could use basically https://github.com/paragonie/halite/blob/master/src/Contract/StreamInterface.php as interface for description streaming.

What do you think about this more low level details?

nerdstein commented 8 years ago

There is nothing that stands out to me as being problematic with this approach. We certainly need to have some good error correction in the event that someone passes a bogus encryption profile. I think "key_profile" should actually be "encryption_profile", which is a wrapper for the encryption algorithm and the selected key.

nerdstein commented 8 years ago

Like anything else, I say we give it a shot. We may find limitations but we can cross that bridge when we get to it.

dawehner commented 8 years ago

Started with some initial implementation. What are your thoughts so far?

nerdstein commented 8 years ago

Feedback applied but overall this is a good start