MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / encryption

Method encryption

controller/admin/admin.js:155–158  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

153 })
154 }
155 encryption(password){
156 const newpassword = this.Md5(this.Md5(password).substr(2, 7) + this.Md5(password));
157 return newpassword
158 }
159 Md5(password){
160 const md5 = crypto.createHash('md5');
161 return md5.update(password).digest('base64');

Callers 2

loginMethod · 0.95
registerMethod · 0.95

Calls 1

Md5Method · 0.95

Tested by

no test coverage detected