Skip to content

Test of a server that creates an encrypted cookie

Notifications You must be signed in to change notification settings

aoxa/cookie-auth-server

Repository files navigation

Simple cookie creation web server using Spring Boot.

run with ./gradlew build && java -jar build/libs/gs-spring-boot-0.1.0.jar

the key used is: SecretKeySpec keySpec = new SecretKeySpec("abcdefghijklmnopponmlkjihgfedcba".getBytes(), "AES");

the cookie created is: new Cookie("AUTH_ID", Base64.getEncoder().encodeToString(iv) + Base64.getEncoder().encodeToString(cipher.doFinal("hello!".getBytes())));

It will redirect the user to localhost:8080/users/login.html once that is done.

About

Test of a server that creates an encrypted cookie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages