jose-b64-dec 355 B

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