본문 바로가기
반응형

로그인8

[Java] 단방향 암호화 하기 - SHA256 SHA256 암호화 하기 import java.security.MessageDigest; public class RunTestController { public static void main(String [] args) throws Exception { try { // 사용자로 부터 받은 패스워드 String password = "12345"; System.err.println("passWord : " + password); System.out.println("단방향 passWord : " + encrypt(password)); } catch (Exception e) { e.printStackTrace(); } } /** * 단반향 암호화 하기 * @param password * @return * @th.. 2023. 5. 26.
[SpringBoot] Security 로그인 인증, 인가(9) - 실행하기 이전글 https://greed-yb.tistory.com/230 [SpringBoot] Security 로그인 인증, 인가(8) - Controller 이전글 https://greed-yb.tistory.com/229 [SpringBoot] Security 로그인 인증, 인가(7) - html 이전글 https://greed-yb.tistory.com/228 [SpringBoot] Security 로그인 인증, 인가(6) - Service 이전글 https://greed-yb.tistory.com/227 [SpringBoo greed-yb.tistory.com 프로젝트 실행 localhost:9090 으로 접속하면 해당 주소에 대한 권한이 없기 때문에 /login 경로로 이동이 된다 회원가입 login.. 2023. 4. 30.
[SpringBoot] Security 로그인 인증, 인가(8) - Controller 이전글 https://greed-yb.tistory.com/229 [SpringBoot] Security 로그인 인증, 인가(7) - html 이전글 https://greed-yb.tistory.com/228 [SpringBoot] Security 로그인 인증, 인가(6) - Service 이전글 https://greed-yb.tistory.com/227 [SpringBoot] Security 로그인 인증, 인가(5) - Vo , Mapper 이전글 https://greed-yb.tistory.com/226 [Sp greed-yb.tistory.com UserController package com.example.practice.controller.login; import com.example.pract.. 2023. 4. 30.
[SpringBoot] Security 로그인 인증, 인가(6) - Service 이전글 https://greed-yb.tistory.com/227 [SpringBoot] Security 로그인 인증, 인가(5) - Vo , Mapper 이전글 https://greed-yb.tistory.com/226 [SpringBoot] Security 로그인 인증, 인가(4) - AuthProvider 이전글 https://greed-yb.tistory.com/225 [SpringBoot] Security 로그인 인증, 인가(3) - handler 이전글 https://greed-yb.tistory.com/224 [S greed-yb.tistory.com UserService package com.example.practice.service.user; import com.example.pract.. 2023. 4. 30.
[SpringBoot] Security 로그인 인증, 인가(3) - handler 이전글 https://greed-yb.tistory.com/224 [SpringBoot] Security 로그인 인증, 인가(2) - SecurityConfig 이전글 https://greed-yb.tistory.com/223 [SpringBoot] Security 로그인 인증, 인가(1) - 환경설정 Java 17 Maven Spring Boot 3.0.3 Spring Security 3.0.4 Oracle 11g Mybatis IntelliJ Ultimate DBeaver Thymeleaf 폴더 구조 더보기 Security 한번 greed-yb.tistory.com WebAccessDeniedHandler(인가) AccessDeniedHandler는 인증은 되었지만 서버에 요청을 할 때 액세스가 가능.. 2023. 4. 30.
[SpringBoot] Security 로그인 인증, 인가(2) - SecurityConfig 이전글 https://greed-yb.tistory.com/223 [SpringBoot] Security 로그인 인증, 인가(1) - 환경설정 Java 17 Maven Spring Boot 3.0.3 Spring Security 3.0.4 Oracle 11g Mybatis IntelliJ Ultimate DBeaver Thymeleaf 폴더 구조 더보기 Security 한번 구현해보겠다고 일주일 내내 작업한거 같다 거의 대부분의 예제들은 3.0.0 이하의 greed-yb.tistory.com SecurityConfig package com.example.practice.security.config; import com.example.practice.security.handler.WebAccessDenie.. 2023. 4. 30.
반응형