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.
If you want to encrypt files on server side it can be done via following:
Use the APIv3 Ruby gem to perform file encryption on the server side.
Use the official PHP SDK to implement server-side encryption.
Use the official Java SDK to implement server-side encryption.
Use the official Python SDK to implement server-side encryption.
To implement encryption manually see figure:
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:
Fig. 1. Fingerprint calculation schematic.