New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gracenode-encrypt

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gracenode-encrypt

encrypt of module for gracenode framework

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Encrypt Module

Encrypt module for gracenode framework.

This is designed to function within gracenode framework.

How to include it in my project

To add this package as your gracenode module, add the following to your package.json:

"dependencies": {
        "gracenode": "",
        "gracenode-encrypt": ""
}

To use this module in your application, add the following to your gracenode bootstrap code:

var gracenode = require('gracenode');
// this tells gracenode to load the module
gracenode.use('gracenode-encrypt');

To access the module:

// the prefix gracenode- will be removed automatically
gracenode.encrypt

Access

gracenode.encrypt

Configurations N/A

###API: createHash

void createHash(String sourceStr, Int cost, Function callback)

Creates a hash with salt from sourceStr

This function uses bcrypt module and it is based on blowfish encryption.

Bigger the cost the slower this function will become.

###API: validateHash

void validateHash(String str, String hash, Function callback)

Validates a hash and str

###API: uuid

String uuid(Int version, Object options, Buffer buffer, Array offset)

Creates a uuid. This module uses node-uuid module.

Possible values for version are 1 or 4

Version 1 is timestamp-base and version 4 is random-base

Keywords

FAQs

Package last updated on 22 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc