Skip to content

Instantly share code, notes, and snippets.

@m0rb
Last active May 5, 2023 05:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m0rb/61f4596ed3bbdc6a37e3bb887d826246 to your computer and use it in GitHub Desktop.
Save m0rb/61f4596ed3bbdc6a37e3bb887d826246 to your computer and use it in GitHub Desktop.
pure bash bash64.sh
#!/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
@m0rb
Copy link
Author

m0rb commented Apr 26, 2023

326 bytes

325 bytes

323 bytes

313 bytes

308 bytes

304 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment