Simple Raiden cipher implementation