Encryption details

Files passed to Create Encrypted File should be encrypted with DIDWW Public Keys.

Using SDK for encryption

Recommended way of using encryption is to encrypt files in browser. it can be achieved via @didww/encrypt JS library.

Ruby Gem

Use the APIv3 Ruby gem to perform file encryption on the server side.

https://github.com/didww/didww-v3-ruby/blob/master/lib/didww/encrypt.rb
PHP SDK

Use the official PHP SDK to implement server-side encryption.

https://github.com/didww/didww-api-3-php-sdk/blob/master/src/Encrypt.php
Java SDK

Use the official Java SDK to implement server-side encryption.

https://github.com/didww/didww-api-3-java-sdk/blob/main/src/main/java/com/didww/sdk/Encrypt.java
Python SDK

Use the official Python SDK to implement server-side encryption.

https://github.com/didww/didww-api-3-python-sdk/blob/main/src/didww/encrypt.py

To implement encryption manually see figure:


../../../../_images/enc.png

Fig. 1. File encryption schematic.

For additional check you need to pass fingerprint of public keys along with encrypted files. You can use our JS library or ruby SDK for that.

To implement fingerprint calculation manually see figure:

../../../../_images/fingerprint.png

Fig. 1. Fingerprint calculation schematic.