emiln / crypto-course

Various encryption functions for putting the Cryptography course into perspective and practical use.
GNU General Public License v3.0
0 stars 1 forks source link

Fix periodically failing test #4

Closed emiln closed 10 years ago

emiln commented 10 years ago

By using elements on only legal elements instead of using such-that and hoping to find a legal element within the allowed number of attempts, there is no longer a risk of the tests for the Affine Cipher failing to find a proper key.

This fixes issue #1.