added getType() in CryptoTools