Created
February 3, 2020 10:45
-
-
Save tomredsky/40265b7c6644e9493fa3faaf8bd7dff0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/opt/perl5/bin/perl | |
use v5.22; | |
use warnings; | |
use Crypt::CBC; | |
use MIME::Base64; | |
my $string = 'U2FsdGVkX18Hda5EdNIpyGFgLgJ1GRiZHUD/8NVKqe4='; | |
my $cipher = Crypt::CBC->new( | |
-key => 'our shared secret', | |
-cipher => 'Blowfish' | |
); | |
my $demime = decode_base64($string); | |
my $plain = $cipher->decrypt($demime); | |
say $plain; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment