Boos's Discovery

  • 홈
  • 태그
  • 방명록

ES256 1

Python JWT 토큰 생성 및 검증

PyJWT 패키지 이용해서 JWT 토큰을 생성하고 검증및 파싱하는 예제.pip install pyjwtpip install cryptography # RSA, ESCDA 를 위해 필요 서명 알고리즘은 ES256 을 사용.import jwt#private_key = open('es256-private-key.txt').read()private_key = """-----BEGIN PRIVATE KEY-----MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCDiQhSHFsb3puIYG4lfJsCRgb1RlA0t2U41X+ph0YvAUw==-----END PRIVATE KEY-----"""print(private_key)# token = jwt.encode({"so..

Engineering/Python 2021.05.06
이전
1
다음
더보기
프로필사진

Boos's Discovery

당당하게 걷기

  • 분류 전체보기 N
    • Thinking
      • Book
      • Music
      • Writing
      • Study
      • CodingGame
      • 웹소설
    • Traveling
    • Tasking
    • Living N
      • Lotto N
    • Engineering
      • BSD
      • DB
      • Facebook
      • Etc
      • JNI
      • Kernel
      • Linux
      • Mac
      • Docker
      • Network
      • Tomcat
      • PHP
      • javascript
      • Vue
      • Spring
      • Python
      • Java
      • ShellScript
      • Elasticsearch
      • C#
      • Redis
      • Flutter
      • Unity
      • Android
      • Windows
      • AI

Tag

Python, 박성현, docker build, MySQL, 토비의 봄, 로또, 티스토리챌린지, 연금 복권, yt-dlp, MAC, ip addr, redis, Lotto, centOS7, upload, 국민연금, 연금 복권 번호, docker, xcrun altool, 오블완,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 네이버 블로그 - firstboos

티스토리툴바