class CryptoApp {

    private int encryptPassword(final String password, final CryptoKeyStore ks)
                                                    throws Exception {
        if (!ks.keyStoreExists()) {
            createKeyStore(ks);
        }
        updateStatus("Using KeyStore: " + ks.getKeyStoreFile());

        String encPwd = getCryptoService(ks).encrypt(password);
        updateStatus("Encrypted Password:\nENC(" + encPwd + ")");

        return EXIT_SUCCESS;
    }

    public  CryptoApp(
            CryptoKeyStoreFactory ksFactory, CryptoServiceFactory csFactory);
    public  CryptoApp();

}