Package com.upgradingdave.encryption.cli

Source Code of com.upgradingdave.encryption.cli.Encrypt

package com.upgradingdave.encryption.cli;

import com.upgradingdave.encryption.JasyptExample;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Encrypt extends EncryptionCli{

    private static final Logger log = LoggerFactory.getLogger(Encrypt.class);

    public static void main(String[] args){

        Encrypt encrypt = new Encrypt(Encrypt.class.getSimpleName(), Encrypt.class.getSimpleName().toLowerCase());
        encrypt.parseArgs(args);

        JasyptExample j = new JasyptExample(encrypt.getPassword());
        System.out.println("Encrypted Message: ");
        System.out.println(j.encrypt(encrypt.getMessage()));

    }

    public Encrypt(String command, String operation) {
        super(command, operation);
    }
}
TOP

Related Classes of com.upgradingdave.encryption.cli.Encrypt

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.