Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions prompto-lab-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
<version>2.0.57</version>
</dependency>

<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
2 changes: 2 additions & 0 deletions prompto-lab-app/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ server:
port: 8080

spring:
config:
import: classpath:you-cant-see-that.yml
application:
name: poet-agent
datasource:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.github.timemachinelab;

import org.jasypt.encryption.StringEncryptor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.web.WebAppConfiguration;

@SpringBootTest
public class EncodingUtil {

@Autowired
StringEncryptor encryptor;

@Test
public void getPass() {
String encryptedUsername = encryptor.encrypt("root");
String encryptedPassword = encryptor.encrypt("root");

System.out.println("Username Encrypted: " + encryptedUsername);
System.out.println("Password Encrypted: " + encryptedPassword);
}
}
Loading