Last active
May 5, 2023 05:01
-
-
Save m0rb/61f4596ed3bbdc6a37e3bb887d826246 to your computer and use it in GitHub Desktop.
pure bash bash64.sh
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
#!/bin/bash | |
B=({A..Z} {a..z} {0..9});p=printf\ ;I=$(B=$@ | |
for((;i<${#B};i++)){ for y in {31..128};{ | |
[[ ${B:i:1} = "$($p\\x`$p%x $y`)" ]]&&(a()((q=y/2,r=y%2));a;o=$r | |
for((;q;)){ y=$q;a;o=$r$o;};$p%08d $o)} }) | |
for((;e<${#I};e+=6)){ y=${I:e:6}0000;O+=${B[2#${y::6}]};} | |
for((;${#O}%4;)){ O+=\=;} | |
$p$O |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
304 bytes