Refactored CryptoTool.