Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.28 KB

README.md

File metadata and controls

29 lines (18 loc) · 1.28 KB

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.