forked from ESAPI/esapi-java-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetMasterKey.sh
More file actions
executable file
·22 lines (20 loc) · 790 Bytes
/
setMasterKey.sh
File metadata and controls
executable file
·22 lines (20 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
if [[ -z "$esapi_classpath" ]]
then
echo 2>&1 "esapi_classpath not set. Did you dot the appropriate env file?"
echo 2>&1 "If you are using ESAPI from downloaded zip file, use:"
echo 2>&1 " . ./setenv-zip.sh"
echo 2>&1 "If you are using ESAPI pulled from SVN repository, use:"
echo 2>&1 " . ./setenv-svn.sh"
exit 1
fi
cd ../java
echo "Your ESAPI.properties file: $esapi_properties"
echo
# set -x
# This should use the real ESAPI.properties in $esapi_resources that does
# not yet have Encryptor.MasterKey and Encryptor.MasterSalt yet set.
java -Dlog4j.configuration="file:$log4j_properties" \
-Dorg.owasp.esapi.resources="$esapi_resources" \
-classpath "$esapi_classpath" \
org.owasp.esapi.reference.crypto.JavaEncryptor "$@"