Skip to content

Upgraded to Java 17, Spring Boot 3, Added PostgreSQL database and Symmetric key encryption#1

Open
kavindukalinga wants to merge 2 commits intokriscfoster:masterfrom
kavindukalinga:master
Open

Upgraded to Java 17, Spring Boot 3, Added PostgreSQL database and Symmetric key encryption#1
kavindukalinga wants to merge 2 commits intokriscfoster:masterfrom
kavindukalinga:master

Conversation

@kavindukalinga
Copy link

Here, upgraded to Java 17 and Spring Boot 3.2.5

		<artifactId>spring-boot-starter-parent</artifactId>
		<version>3.2.5</version>
	<properties>
		<java.version>17</java.version>
	</properties>

And connected PostgreSQL database;

spring.datasource.url=jdbc:postgresql://localhost:5436/student

And added Symmetric key encryption using pg-crypto and Column transformer

    @ColumnTransformer(
            read = "PGP_SYM_DECRYPT(name,'"+symkey+"')",
            write = "PGP_SYM_ENCRYPT (?, '"+symkey+"')"
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant