jose-b64-enc 361 B

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