howtos:de-base64
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:de-base64 [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Perl script to decode a base64 encoded input ===== | ||
+ | |||
+ | < | ||
+ | # | ||
+ | use MIME:: | ||
+ | print " | ||
+ | foreach (@ARGV) { | ||
+ | print decode_base64(" | ||
+ | print " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The script take the base64 encoded input as a parameter and output the result. Like this: | ||
+ | |||
+ | < | ||
+ | de-base64.pl ZW5jb2RlZC1iYXNlNjQtdGV4dA== | ||
+ | |||
+ | encoded-base64-text | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Perl script to encode input to base64 ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | # | ||
+ | use MIME:: | ||
+ | print " | ||
+ | foreach (@ARGV) { | ||
+ | print encode_base64(" | ||
+ | print " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | It is run the same way as de-base64.pl. |
howtos/de-base64.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1