Improved simulated annealing algorithm for generating optimal S-boxes any dimentions. It works for DES, MacGuffin and GOST-28147-89