created CryptoUtils class and moved all static methods to it