code: function createSecret (secret) {
    const hash = crypto.createHash('sha256')
    hash.update(secret)
    return hash.digest()
  }
docs: Ensure that a user-provided `secret` is 32 bytes long (the length required
  for an AES256 key) by hashing it with SHA256.
  
  @param {string|Buffer} secret