Skip to content

Commit

Permalink
for #175, use new encryption for rules w/ password
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed Jul 6, 2022
1 parent 7482746 commit efe1748
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/server/skypeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
"use strict";

var Skyweb = require('skyweb');
var simplecrypt = require('simplecrypt');

var utils = require('../utils');
var conf = require('../configuration');
var log = require('../logger');
var Eventer = require('../eventer');

var PatternsService = require('./patternsService');

// FIXME: use non-deprected (and better) crypto system
var sc = simplecrypt({salt:'boopdeeboop',password:'blink1control',method:"aes-192-ecb"});


var SkypeService = {
skyweb: null,
Expand Down Expand Up @@ -49,7 +46,7 @@ var SkypeService = {
}
var pass = '';
try {
pass = sc.decrypt( rule.password );
pass = utils.decrypt( self.config.passwordHash );
} catch(err) {
log.msg('SkypeService: bad password for rule',rule.name);
return;
Expand Down

0 comments on commit efe1748

Please sign in to comment.