com.denimgroup.threadfix.util.EncryptDecryptUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of threadfix-entities Show documentation
Show all versions of threadfix-entities Show documentation
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/
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;
}
}
}