code: function(password) {
      if (!password) return '';
      var encrypred;
      try {
        encrypred = crypto.createHmac('sha1', this.salt).update(password).digest('hex');
        return encrypred;
      } catch (err) {
        return '';
      }
    }
docs: Encrypt password