Adding CryptographyFactory class.