Skip to content

Instantly share code, notes, and snippets.

View decpk's full-sized avatar
🇮🇳
Working on something important...

Praveen kumar decpk

🇮🇳
Working on something important...
View GitHub Profile
@gaibz
gaibz / db.js
Last active May 5, 2021 07:34
NeDB Encryption & Decryption (Work 2020)
/**
* NeDB With Encryption & Decryption
* Last Update 12 Feb 2020
*
* @author : Herlangga Sefani Wijaya <https://github.com/gaibz>
*/
const path = require('path') // path for database
const Datastore = require("nedb") // of course you need NeDB
const crypto = require('crypto') // now is in node default module