UNPKG

hashon

Version:

Encrypt, decrypt and hash JSON data with AES and SHA — made for secure local files and syncing.

16 lines (11 loc) 461 B
// postinstall.js const crypto = require('crypto'); const secret = crypto.randomBytes(32).toString('base64'); console.log(` \u001b[33m[hashon] ⚠️ No HASHON_SECRET found.\u001b[0m Please add the following line to your .env file to enable encryption and decryption: \u001b[36mHASHON_SECRET=${secret}\u001b[0m You can generate your own key using: \u001b[36mopenssl rand -base64 32\u001b[0m ℹ️ Documentation: https://github.com/your-username/hashon `);