Skip to content

Instantly share code, notes, and snippets.

@groovecoder
Created March 19, 2020 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groovecoder/85ead4f8b90c878535577fffddeab512 to your computer and use it in GitHub Desktop.
Save groovecoder/85ead4f8b90c878535577fffddeab512 to your computer and use it in GitHub Desktop.
logger.info({
'event_type': 'email_relay',
'relay_address_id': relay_address.id,
'relay_address': sha256(local_portion.encode('utf-8')).hexdigest(),
'real_address': sha256(
relay_address.user.email.encode('utf-8')
).hexdigest(),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment