Format a string into/out of base64
    -i : in to base64 or base32 (default is into base64)
    -o : out of base64 or base32
    -b 32 : use base 32 NOT base64
    -w : line length for formatting to base64
        default is -w 0 for NO end-of-line
    -h : do not process the FipHdr if it exists
        default is to take the whole file as data
    -s : optional input string
    -v : version and exit

    sffb64 -i -s "mylogon:mypwd"
    echo -n "zibble/bongo" | sffb64 -i > /tmp/formattedbase64
    cat MyBase64StringFile | sffb64 -o > /tmp/cleartext
    sffb64 -b 32 -i -s "goggleIssuer:goggleLogon"

Normally, for into base64, we add a NewLine After the string, use the '-n'
input switch to strip.

Note that if you use 'echo' pls remember to NOT add a NL at the end.

Only other input parameter is -v : version and exit

Version Control
;0k  5dec97 chris original version
    ;a  1oct98 buffer size up pls
    ;b 10mar00 bugette
    ;c 29jan02 added -w, -h
    ;d 04aug03 mini mod to decode
    ;e-j 08feb07 bugette - adding an extra '=' pad at end.
    ;k base32 for GoogleAuthenticator

(copyright) 2024 and previous years FingerPost Ltd.