Skip to content

kdclaw3/ram-cityworks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ram-cityworks   Build Status   npm version

About

This module checks the input password against a user's password stored in the Cityworks database. Why?/Rant As of Cityworks 2015R2 Cityworks stores a SIMPLE MD5 hash of the password in the [PASSWORD] column in the [AZTECA.USERS] table. Correct, no modern day encryption techniques used. Enterprise exposing Cityworks outside the network should be very leery. This module et al. was used to enforce strong passwords inside Cityworks by expiring Cityworks users with simple passwords.

Installation

$ npm install ram-cityworks

Usage

var ram = require('ram-cityworks');

//.match(<CITYWORKS PASSWORD>,<INPUT PASSWORD>)
var matches = ram.match('5F4DCC3B5AA765D61D8327DEB882CF99','password');
console.log('The input matches the Cityworks password: ' + matches + '.');

var matches = ram.match('5F4DCC3B5AA765D61D8327DEB882CF99','incorrect_password');
console.log('The input matches the Cityworks  password: ' + matches + '.');

License

MIT © 2016 Dee Clawson.

About

Hash check input password against Cityworks password.

Resources

Stars

Watchers

Forks

Packages

No packages published