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

Method encryption

controller/v2/user.js:228–231  ·  view source on GitHub ↗
(password)

Source from the content-addressed store, hash-verified

226 })
227 }
228 encryption(password){
229 const newpassword = this.Md5(this.Md5(password).substr(2, 7) + this.Md5(password));
230 return newpassword
231 }
232 Md5(password){
233 const md5 = crypto.createHash('md5');
234 return md5.update(password).digest('base64');

Callers 2

loginMethod · 0.95
chanegPasswordMethod · 0.95

Calls 1

Md5Method · 0.95

Tested by

no test coverage detected