Snippet!

GSoC17 : Client Side File Crypto : Week 12 : Wrap-up

This blog post summarizes the twelfth and final week of writing open-source code for Drupal with Google Summer of Code.

Final week of GSoC! My module is ready for testing and community reviews. I’ve added instructions on the module page https://www.drupal.org/project/client_side_file_crypto . Feel free to provide any feedback and raise issues on the issue queue of the module here.

Gsoc17 : Client Side File crypto : Week 11

This blog post summarizes the eleventh week of writing open-source code for Drupal with Google Summer of Code.

The module is finally complete with most of it’s major features. It is complete for testing and a bit more changes are to be made that have been discussed, suggested and some things that were planned and are left to implement.

GSoC17: Client Side File Crypto : Week 10

This blog post summarises the tenth week of writing open-source code for Drupal with Google Summer of Code.

JS DOM manipulating for listing encrypted files

The REST API that I had set up last week was leveraged to append the list of the files that are associated with a node for making the files available for decryption and downloading.

GSoC17 : Client Side File Crypto : Week 9

This blog post summarises the ninth week of writing open-source code for Drupal with Google Summer of Code. 

Attaching JS to all nodes
 

One thing that I was wondering and trying to figure out how to do was to attach a JS script to all the nodes on the site for the decryption of the files on the article node. 
How I went around doing that was by using the node preprocessing hook.

function client_side_file_crypto_preprocess_node(&$variables) {

 $node = $variables['node'];

GSoC17 : Client Side File Encryption : Week 5

This blog post summarises my fifth week of working with Google Summer of Code 2017 with Drupal.

Sandbox to implement the file encryption

This week I created a sandbox page in the router to test standalone file encryption. It utilised the HTML5 FileReading API to get the contents of the selected file that needs to be encrypted.

var reader = new FileReader();

An alternative would be:

var reader = new FileReaderSync();

GSoC17 : Client Side File Crypto : Week 4

This blog post summarises my fourth week of the coding period of Google Summer of Code with Drupal.

Code Review

The week began with iterating over previously committed code based on feedback by Colan. After making the changes and pushing them, I later merged the merge request into the 8.x-1.x-dev branch after Colan’s approval.