Socket
Book a DemoInstallSign in
Socket

nx-url-hash

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nx-url-hash

Utility to easily generate hashes from URL's

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
13
1200%
Maintainers
1
Weekly downloads
 
Created
Source

URL-HASH

Utility to easily generate hashes from URL's

Current configuration is coded to use SHA-1 and HEX encoding, future updates will enable users to easily configure this.  

Installation

npm install nx-url-hash [--save]

Usage

var URLHash = require('nx-url-hash');
var urlHash = new URLHash({
	key: [YourKey][Optional],
	algorithm: [Any Algorithm supported by NodeJS's Crypto Lib] [Default: SHA1] [Optional],
	encoding: [Any Encoding supported by NodeJS's Crypto Lib] [Default: HEX] [Optional],
})
var hash = urlHash.hash(URL_TO_ENCODE);

Author

Peter Andreas Moelgaard (GitHub, Twitter)

License

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Keywords

url

FAQs

Package last updated on 24 Feb 2015

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