Skip to content

A node.js module for encrypting and decrypting secrets with a master password

License

Notifications You must be signed in to change notification settings

taravancil/shroud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shroud

standard code style

A module for encrypting and decrypting secrets with a master password, and managing them in a file-based vault.

Usage

const opts = {
  dataDir: '/usr/shroudData', // optional, default HOME_DIR/.shroud
  masterPassword: 'astrongmasterpassword' // required if not initialized
}

// initialize shroud
const shroud = require('shroud')(opts)

// add a secret to the vault
shroud.add({name: 'sekrit.com', secret: 'sekrit'})

// add a secret with a category
shroud.add({name: 'sekrit.com', secret: 'sekrit', category: 'work'})

// decrypt a secret
shroud.reveal('sekrit.com', 'astrongmasterpassword')

// remove a secret
shroud.remove('sekrit.com')

// update a secret
shroud.update({name: 'sekrit.com', secret: 'newSekrit'})

// list all secrets
shroud.list()

// list all secrets by category()
shroud.list({category: 'work'})

// list secrets that match a pattern (case-insensitive)
shroud.list({pattern: 'SekRit'})

About

A node.js module for encrypting and decrypting secrets with a master password

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published