-
항해 99 5기 TIL_23항해 99 2022. 2. 2. 00:50
▶ Today I Learned
<CS 스터디>
함수: 프로시저, 서브루틴과 동일한 의미라 볼 수 있음. 똑같은 코드를 두 번 이상 작성하는 것을 피하고자 나온 수단.
함수가 호출되는 것을 영어로 call이나 invoke 한다고 표현한다.
스택: 물건을 쌓듯 데이터를 쌓아 올리는 구조, 나중에 들어온 것이 먼저 나간다(last in, first out)이라고 해서 LIFO 구조라고도 한다.
함수 호출 시 많이 사용되며 값을 저장할 때는 push, 값을 빼낼 때는 pop을 실행한다.
스택이 쌓이다 들어갈 공간이 없는 경우가 스택오버플로우, 빈 스택에서 물건을 가져오려는 경우가 스택언더플로우 가 된다.
<홈페이지 구현>
[JWT]
JWT: Json Web Token
Json 형태의 데이터를 안전하게 교환하여 사용할 수 있도록 해줌
표준으로 자리잡았으며 여러가지 암호화 알고리즘이 사용가능,
Header, Payload, Signature라는 3부분으로 구성되어 있음.
JWT는 누구든지 가져와 decode해볼 수 있으며 JWT를 변조하더라도 똑같은 결과를 나타낼 수도 있음
단, 이 JWT가 유효한지 검사하는 것은 시크릿 키가 있어야 하며 서버측에서만 가능!
시크릿 키를 잘 보관하자!
이에 대해 잘 정리된 아래의 블로그를 참조하면 좋다.
▶ 느낀 점
설 연휴다 보니 중간중간 연락을 받거나 이야기를 나누는 시간들이 끼여있어 진득하게 앉아 공부하기는 쉽지 않았다.
그래도 틈틈이 CS 책을 가볍게 읽고 오늘도 홈페이지 구현을 위해 힘썼다.
로그인/회원가입 페이지의 틀을 우선 가볍게 만들어뒀고 기능 추가를 위해 필요한 부분의 강의를 듣고 있다.
내일 마저 다 듣고 본격적으로 적용에 나서야겠다..!
목요일은 배포 및 마무리를 해야할 테니 내일은 공부할 때 좀 더 빠르게 작업해보도록 하자..!
▶ 공부 시 참고 링크들
https://www.npmjs.com/package/jsonwebtoken
'항해 99' 카테고리의 다른 글
항해 99 5기 TIL_25 (0) 2022.02.04 항해 99 5기 TIL_24 (0) 2022.02.03 항해 99 5기 TIL_22 (0) 2022.02.01 항해 99 5기 WIL_3 (0) 2022.01.30 항해 99 5기 TIL_21 (0) 2022.01.30