Skip to content

Instantly share code, notes, and snippets.

@JburkeRSAC
Created September 15, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JburkeRSAC/ebe1e2811495794b520d to your computer and use it in GitHub Desktop.
Save JburkeRSAC/ebe1e2811495794b520d to your computer and use it in GitHub Desktop.
PHP Base64 Decode text file contents
<?php
$str = file_get_contents("encoded.txt");
#echo base64_decode($str)."\n";
$lines = explode("\n",$str);
for($i = 0; $i < count($lines); $i++) {
$variable_1 = $lines[$i];
echo base64_decode($variable_1)."\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment