본문 바로가기 메뉴 바로가기

le récit de ellie

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

le récit de ellie

검색하기 폼
  • 분류 전체보기 (178)
    • Life (7)
    • Backend (32)
      • Java (23)
      • Spring (1)
      • SQL (1)
      • Infra (2)
    • Frontend (21)
    • Python (29)
    • Android (4)
      • Kotlin (4)
    • Data (11)
      • R (10)
      • 데이터엔지니어링 (0)
    • CS (8)
    • Algorithm (25)
    • 프로젝트 (21)
    • C (0)
      • C Compiler (0)
    • Tool (1)
  • 방명록

random (1)
[Python] secrets 라이브러리 : Generate secure random number

secrets 라이브러리 ✔️ secure random number를 생성해준다. - secret key를 생성할 때 사용할 수 있다. - random id를 생성할 때 사용할 수 있다. import secrets 📄 secrets.token_bytes(nbytes=32) secrets.token_bytes() b'\xe0}v\x8c\xb7\x00\xf9\xe9\x06\x9dm\t\xcf\xeb"=\x90\x91\x94#\x05r%\xd0\'\xa4S\x0f\xe3\xcau\n' len(secrets.token_bytes()) 32 secrets.token_bytes(16) b'i\x98\xe7ze\xe2\x9d\x80\xb3\xe41L\xc3]\x99"' len(secrets.token_bytes(16..

Python 2021. 7. 17. 18:58
이전 1 다음
이전 다음
공지사항
최근에 올라온 글

Blog is powered by Tistory / Designed by Tistory

티스토리툴바