jose-b64-enc 355 B

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