encryption/decryption is using depends on incoming data type;

added description of useAlgorithm method;