| PY-HTTP-Signature. HTTP ¼¸íÀ» »ç¿ëÇÏ¿© HTTP ¿äûÀ»À§ÇÑ °£´ÜÇÑ º¸¾È ¼¸í |
Áö±Ý ´Ù¿î·Îµå |
PY-HTTP-Signature. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Adam T. Lindsay
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- https://github.com/atl/
PY-HTTP-Signature. ű×
PY-HTTP-Signature. ¼³¸í
PY-HTTP-Signature´Â Secure Signatures.usagefor °£´ÜÇÑ ¿ø½Ã ¼¸íÀ» »ç¿ëÇÏ¿© HTTP ¿äû¿¡ ¼¸í ÇÒ ¼öÀÖ´Â ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. http_signaturesig_maker = http_signaturesig_maker = http_signaturesigner (secret = 'test.pem', algorithm = 'rsa-sha256') sig_maker.sign 'Hello World!') ¿äû°ú ÇÔ²² »ç¿ëÇϱâ : jsonimport requestsfrom http_signature.requests_auth °¡Á® ¿À±â httpsignatureAuthauth = httpsignatureAuth (key_id = 'test', secret = 'test.pem) z = requests.get ('https : //api.joyentcloud) .com / my / packages / small + 1GB ', auth = auth = headers = {x-api-version': '~ 6.5'}) Ŭ·¡½º ÃʱâÈ parametersHttp_signature.signer (secret = '', algorithm = 'rsa-sha256) ') ºñ¹ÐÀº RSA ¼¸íÀÇ °æ¿ì °³ÀÎ RSA PEM ÆÄÀÏÀÇ °æ·ÎÀÔ´Ï´Ù. HMACÀÇ °æ¿ì¿¡´Â ºñ¹Ð ¾ÏÈ£ÀÔ´Ï´Ù. ¾Ë°í¸®ÁòÀº 6 °³ÀÇ Çã¿ë µÈ ¼¸í Áß ÇϳªÀÔ´Ï´Ù : RSA-SHA1, rsa-sha256, rsa-sha512, hmac-sha1, hmac-sha256, hmac-sha512.http_signature.requests_auth.httpsignatuutheAuth (key_id = '', secret = ''¾Ë°í¸®Áò) = 'RSA-SHA256', Çì´õ = ¾øÀ½) key_id´Â ¼¹ö ½Ã½ºÅÛÀÌ RSA ¼¸íÀ̳ª ¾ÏÈ£¸¦ ¾Ë°íÀÖ´Â ·¹À̺íÀÔ´Ï´Ù. Çì´õ´Â ¿¬°áµÈ HTTP Çì´õ ¸ñ·ÏÀÌ¸ç ¼¸í °´Ã¼·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ±âº»ÀûÀ¸·Î »ç¾çÀÇ ÃÖ¼Ò°ª ÀÎ Date HTTP Çì´õÀÔ´Ï´Ù. ºñ¹Ð°ú ¾Ë°í¸®ÁòÀº ´ÙÀ½°ú °°½À´Ï´Ù. Á¦Ç°ÀÇ È¨ÆäÀÌÁö
PY-HTTP-Signature. °ü·Ã ¼ÒÇÁÆ®¿þ¾î