Skip to content

Instantly share code, notes, and snippets.

@BramEsposito
Last active October 17, 2016 14:27
Show Gist options
  • Save BramEsposito/6448f96e6ee7490f2df51137c3874d35 to your computer and use it in GitHub Desktop.
Save BramEsposito/6448f96e6ee7490f2df51137c3874d35 to your computer and use it in GitHub Desktop.
Generate a Dutch password following the XKCD philosophy
# /usr/bin/perl
# documentation: http://bbusschots.github.io/hsxkpasswd/Crypt-HSXKPasswd/pod.html
# install: sudo cpan Crypt::HSXKPasswd
use Crypt::HSXKPasswd;
use Crypt::HSXKPasswd::Dictionary::NL;
my $hsxkpasswd_instance = Crypt::HSXKPasswd->new(
dictionary => Crypt::HSXKPasswd::Dictionary::NL->new(),
preset => 'APPLEID',
);
print $hsxkpasswd_instance->password();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment