Skip to content

Instantly share code, notes, and snippets.

@warewolf
Created July 25, 2016 19:57
Show Gist options
  • Select an option

  • Save warewolf/27c1b5c26a0fb01f0814f150135fd7c3 to your computer and use it in GitHub Desktop.

Select an option

Save warewolf/27c1b5c26a0fb01f0814f150135fd7c3 to your computer and use it in GitHub Desktop.
# -SSH- warewolf@xabean:~/bin/srp$ cat email
#!/usr/bin/perl
use strict;
use warnings;
use MIME::Base64;
use POSIX qw(strftime);
my ($email) = @ARGV;
printf("%s+%s\@example.com\n",$email,encode_base64(pack("N",strftime("%Y%m%d",localtime)),""));
# -SSH- warewolf@xabean:~/bin/srp$ email deviant
deviant+ATOg1Q==@example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment