Swiss File Knife
a command line
free external tools,
- download the free Swiss File Knife Base from Sourceforge. - open the Windows CMD command line, Mac OS X Terminal or Linux shell. - OS X : type mv sfk-mac-64.exe sfk and chmod +x sfk then ./sfk - Linux: type mv sfk-linux-64.exe sfk and chmod +x sfk then ./sfk OS X and Linux syntax may differ, check the help within the tool.
sfk encode|decode [infile] format [options] en- or decode text or data. formats -base64 encode all chars as a-z A-Z 0-9 +/ with = used as padding character. add -nowrap to keep the output as one long line. -hex encode all chars as hexadecimal -_hex encode non-alphanumeric characters as prefix _ and hex value -\x25hex encode non-alnum chars as % and hex -url same as -\x25hex options -all encode all chars, not just non-alnum -noeol if text lines are received from a previous command then strip line end characters. default on encode with single input line and on hex decode without prefix. does nothing when loading from a file. -tofile x write output to file x. -dump show output data as hexdump. see also sfk hexdump produce hex data in many formats sfk hextobin convert many hex formats to binary sfk md5 create checksum of file(s) web reference http://stahlworks.com/sfk-encode examples sfk encode in.jpg -base64 -tofile out.txt encodes in.jpg as base64, writing to out.txt sfk decode in.txt -base64 -tofile out.dat decodes in.txt from base64, writing to out.dat sfk echo -spat "foo bar" +encode -url produces: foo%20bar sfk echo "foo_20bar" +decode -_hex produces: foo bar sfk fromclip +decode -url make an url copied from a web page readable by changing "foo%20bar" to "foo bar".
sfk is a free open-source tool, running instantly without installation efforts. no DLL's,
no registry changes - just get sfk.exe from the zip package and use it (binaries for
windows, linux and mac are included).
read more about all sfk functions here.