kgb.log
로그인
kgb.log
로그인
Password Management with PasswordEncoders
김가빈
·
2023년 8월 8일
팔로우
0
0
springsecurity
목록 보기
7/23
default PasswordEncoder
userDetailManager deal with password default
it's just storing plain text so It's too danger in authentication
Encoding VS Encryption VS Hashing
encoding and encryption is dangerouse
encoding can't block any users
tester can find encryption and decryption, if he try a lot
so it's recommand to use hashing
it encrypt and decrypt by using hash function
Bcrypt is one of hashing algorithm
hasing text makes ramdom, if you try to insert data, and hashing text will insert into db
if you try to login, hashing function compare your text to hashing text and then return result.
hashing PasswordEncoder
PasswordEncoder interface
don't use StandardPasswordEncoder
recommand BCryptPasswordEncoder
if hacker get all id list, then try a lot he can decrypt hash function.
* so you ask for user to make password longer then 6 charactor.
김가빈
신입 웹개발자입니다.
팔로우
이전 포스트
How to Use custom tables for Authentication
다음 포스트
How to use Bcrypt password encoder
0개의 댓글
댓글 작성