Created
February 17, 2015 10:22
-
-
Save kost/245c4be045558bc329c5 to your computer and use it in GitHub Desktop.
WildFly Password Generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use Digest::MD5 qw(md5 md5_hex md5_base64); | |
my $user=shift; | |
my $pass=shift; | |
my $realm='ManagementRealm'; # or ApplicationRealm | |
my $plaintext=$user.":".$realm.":".$pass; | |
print "$plaintext\n"; | |
print md5_hex($plaintext)."\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment