Brainfuck encoder
python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.sh 331B

12345678910111213141516
  1. #!/bin/bash
  2. bfenc="./pybfenc"
  3. data=$(tempfile)
  4. databf=$(tempfile)
  5. datares=$(tempfile)
  6. dd if=/dev/urandom of=$data bs=1024 count=8 > /dev/null
  7. cat $data | $bfenc > $databf
  8. beef $databf > $datares
  9. [ "$(md5sum $data |cut -d " " -f1)" = "$(md5sum $datares |cut -d " " -f1)" ] && echo "OK" || echo "Fail"
  10. rm $data $databf $datares