Assessment of the strength of cryptosystems