Library: Crypto
Package: Cipher
Header: Poco/Crypto/CipherFactory.h
A factory for Cipher objects. See the Cipher class for examples on how to use the CipherFactory.
Member Functions: createCipher, defaultFactory
Creates a new CipherFactory object.
 
 virtual ~CipherFactory();
Destroys the CipherFactory.
Cipher * createCipher(
    const CipherKey & key
);
Creates a Cipher object for the given Cipher name. Valid cipher names depend on the OpenSSL version the library is linked with; see the output of
openssl enc --help
for a list of supported block and stream ciphers.
Common examples are:
Cipher * createCipher(
    const RSAKey & key,
    RSAPaddingMode paddingMode = RSA_PADDING_PKCS1
);
Creates a RSACipher using the given RSA key and padding mode for public key encryption/private key decryption.
 
 static CipherFactory & defaultFactory();
Returns the default CipherFactory.