key(str, options) {
    var hash = crypto.createHash('sha1');
    hash.update(str + version + options.prefix);
    return hash.digest('hex');
  }
Generate key for the source `str` with `options`.

@param {String} str
@param {Object} options
@return {String}
@api private