jose-b64-dec 361 B

123456789
  1. #!/bin/bash -ex
  2. [ "`echo -n | jose b64 dec -i-`" == "" ]
  3. [ `echo -n "Zg" | jose b64 dec -i-` == "f" ]
  4. [ `echo -n "Zm8" | jose b64 dec -i-` == "fo" ]
  5. [ `echo -n "Zm9v" | jose b64 dec -i-` == "foo" ]
  6. [ `echo -n "Zm9vYg" | jose b64 dec -i-` == "foob" ]
  7. [ `echo -n "Zm9vYmE" | jose b64 dec -i-` == "fooba" ]
  8. [ `echo -n "Zm9vYmFy" | jose b64 dec -i-` == "foobar" ]