Skip to content

Instantly share code, notes, and snippets.

@ehedaya
ehedaya / emailHasher.php
Created July 20, 2017 18:00
PHP script to hash email addresses
<?php
$emails = $_POST['emails'];
if($emails) {
$lines = split("\n", $emails);
$output = array();
foreach($lines as $line) {
$normalized = trim(strtolower($line));
$crypto = $_POST['crypto'];
if(!$crypto || $crypto == "md5") {
$hash = md5($normalized);

Keybase proof

I hereby claim:

  • I am ehedaya on github.
  • I am ehed (https://keybase.io/ehed) on keybase.
  • I have a public key ASDdibwA8vZnny94Jzxr76rqZ4iJrzzR0masf7hzoQ7rUQo

To claim this, I am signing this object: