Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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