encrypt(text) {
    let cipher = crypto.createCipher(this.algorithm, this.password);

    return cipher.update(text, 'utf8', 'hex') + cipher.final('hex');
  }