Little script for solving one of the test tasks of Crypto course at coursera