본문 바로가기

전체 글

(14)
Python PyMySQL PyMySQL 1.0.2 Released: Jan 9, 2021 Installation The last stable release is available on PyPI and can be installed with pip: 번역: 마지막 안정적인 릴리스는 PyPI에서 사용할 수 있으며 다음과 같이 설치할 수 있습니다. pip install PyMySQL To use “sha256_password” or “caching_sha2_password” for authenticate, you need to install additional dependency: 번역: 인증에 "sha256_password" 또는 "caching_sha2_password"를 사용하려면 추가 종속성을 설치해야 합니다. pip inst..
Python cors django-cors-headers 3.13.0 Released: Jun 6, 2022 # 설치 python -m pip install django-cors-headers # INSTALLED_APPS and then add it to your installed apps: 번역: settings.py 에서 INSTALLED_APPS 에 corsheaders 를 추가합니다. INSTALLED_APPS = [ ..., "corsheaders", ..., ] # MIDDLEWARE Make sure you add the trailing comma or you might get a ModuleNotFoundError (see this blog post). You will also need to add a mid..
Python pyjwt PyJWT 2.4.0 Released: May 13, 2022 Installation You can install PyJWT with pip: $ pip install pyjwt Cryptographic Dependencies (Optional) If you are planning on encoding or decoding tokens using certain digital signature algorithms (like RSA or ECDSA), you will need to install the cryptography library. This can be installed explicitly, or as a required extra in the pyjwt requirement: 번역: 특정 디지털 ..
Python Crypto pycrypto는 안되는것 같아 검색해보니 pycryptodome로 대체 된것으로 보입니다. # 설치 pip install pycryptodome # 소스 from Crypto.PublicKey import RSA code = 'nooneknows' # 기초 키 코드 key = RSA.generate(2048) # RSA 키 객체 생성 # 암호화 키 생성 encrypted_key = key.exportKey(passphrase=code, pkcs=8, protection="scryptAndAES128-CBC") # 비밀키 생성 with open('d:/rsa/private_rsa_key.pem', 'wb') as f: f.write(encrypted_key) # 공개키 생성 with open('d:/rs..
javascript fetch fetch('http://example.com/movies.json') .then((response) => response.json()) .then((data) => console.log(data)); post // Example POST method implementation: async function postData(url = '', data = {}) { // Default options are marked with * const response = await fetch(url, { method: 'POST', // *GET, POST, PUT, DELETE, etc. mode: 'cors', // no-cors, *cors, same-origin cache: 'no-cache', // *defa..
20220731
텍스트의 가치 텍스트의 가치는 변하지 않는다.