ram-cityworks

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ram-cityworks

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kdclaw3