Created
November 1, 2016 10:56
-
-
Save preetesh33/5bf060242cf54d051e9a135bc450cac0 to your computer and use it in GitHub Desktop.
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 | |
srand (time()); | |
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))"; | |
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter); | |
my $plaintext = shift; | |
my $crypttext = crypt ($plaintext, $salt); | |
print "${crypttext}\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment