cipher inversion test (without breaking it)