IsaacCipher refactored