Skip to content

Commit ac454d2

Browse files
committed
moved master key to application.properties
1 parent c796496 commit ac454d2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is a demo application which provides a real world representation of a REST
1111

1212
## Run
1313
```sh
14-
$ java -jar target/hello-shiftleft-0.0.1.jar --jasypt.encryptor.password=shiftbyte5
14+
$ java -jar target/hello-shiftleft-0.0.1.jar
1515
```
1616

1717
## Exercise Vulnerabilites and Exposures

src/main/java/io/shiftleft/data/DataLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ private boolean connectToMySQL() {
8383
@Override
8484
public void run(String... arg0) throws Exception {
8585

86-
SimpleCommandLinePropertySource ps = new SimpleCommandLinePropertySource(arg0);
87-
String encryptor = (String) ps.getProperty("jasypt.encryptor.password");
86+
SimpleCommandLinePropertySource ps = new SimpleCommandLinePropertySource(arg0);
87+
String encryptor = (String) ps.getProperty("jasypt.encryptor.password");
8888
log.info("JASP Master Creds is {}", encryptor);
8989

9090
connectToMySQL();
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
jasypt.encryptor.password=shiftbyte5
12
server.port=8081

0 commit comments

Comments
 (0)