All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.denimgroup.threadfix.util.EncryptDecryptUtil Maven / Gradle / Ivy

Go to download

ThreadFix is a software vulnerability aggregation and management system that reduces the time it takes to fix software vulnerabilities. ThreadFix imports the results from dynamic, static and manual testing to provide a centralized view of software security defects across development teams and applications. The system allows companies to correlate testing results and streamline software remediation efforts by simplifying feeds to software issue trackers. By auto generating application firewall rules, this tool allows organizations to continue remediation work uninterrupted. ThreadFix empowers managers with vulnerability trending reports that show progress over time, giving them justification for their efforts. ThreadFix is developed and maintained by Denim Group, Ltd (http://www.denimgroup.com) For information about commercial support and other services, contact Denim Group about ThreadFix http://www.denimgroup.com/resources-threadfix/

There is a newer version: 2.5
Show newest version
package com.denimgroup.threadfix.util;

import org.owasp.esapi.ESAPI;
import org.owasp.esapi.errors.EncryptionException;

/**
 * Created by jtomsett on 6/14/2016.
 */
public class EncryptDecryptUtil {

    public static String decrypt(String encryptedString){
        if(encryptedString == null){
            return null;
        }
        try {
            return ESAPI.encryptor().decrypt(encryptedString);
        }catch (EncryptionException e){
            return null;
        }
    }

    public static String encrypt(String insecureString){
        if(insecureString == null){
            return null;
        }
        try {
            return ESAPI.encryptor().encrypt(insecureString);
        }catch (EncryptionException e){
            return null;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy