Resize the file using the command. It accepts a numeric argument. A positive value sets a new size for the file. A negative one will truncate the file to the current seek position minus N bytes.
Some examples:
It is possible to implement cipher-algorithms using radare core primitives and . A sample session performing xor(90) + add(01, 02):