Skip to content

Latest commit

 

History

History

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

See a verbose explanation of how to prepare environment and use the examples on page "Launching Acra from Docker images". The explanation is provided for Python, some minor tweaks might be needed to get Acra examples run with Node.js.

These examples are simple as it may be with hardcoded values (sorry) just to see how you should create acrastructs and see decrypted data from database. Script will do next: encrypt data, save to database, fetch from database and print.

You can override next values in script to adapt to your environment:

  • raw_data - message that will be encrypted and saved to db
  • config - replace host|port|database|user|password with your settings for PostgreSQL. Use AcraConnector's host:port to print decrypted data and database's host:port to print encrypted data
  • acra_key - replace client_storage.pub with yours correct path to storage public key

Run

nodejs examples/nodejs/example.js