| Py-http-firma Semplice firma sicura per le richieste HTTP usando la firma HTTP |
Scarica ora |
Py-http-firma Classifica e riepilogo
- Licenza:
- MIT/X Consortium Lic...
- Nome editore:
- Adam T. Lindsay
- Sito web dell'editore:
- https://github.com/atl/
Py-http-firma Tag
Py-http-firma Descrizione
PY-HTTP-Signature è un modulo Python che può firmare le richieste HTTP con firme sicure.USAGEFOR SICENTURA FARMACE RAWS SEMPLICE: importazione http_signaturesig_maker = http_signature.Signer (Secret = 'Test.PEM', ALGORITHM = 'RSA-SHA256') SIG_MAKER.Sign ( 'Hello World!') Per l'uso con le richieste: Importa jsonimport requestsfrom http_signature.requests_auth import httpsignatureauthauth = httpsignatureauth (key_id = 'test', secret = 'test.pem') z = richieste.get.get ('https: //api.joyencloud .com / my / packages / small + 1Gb ', auth = auth, header = {' x-API-versione ':' ~ 6.5 '}) Inizializzazione della classe Parametershttp_Signature.Signer (Secret =' ', Algorithm =' RSA-SHA256 ') Secret, nel caso di una firma RSA, è un percorso per un file PEM RSA privato. Nel caso di un HMAC, è una password segreta. L'algoritmo è una delle sei firme consentite: RSA-SHA1, RSA-SHA256, RSA-SHA512, HMAC-SHA1, HMAC-SHA256, HMAC-SHA512.http_Signature.requests_auth.httpsignaTureauth (key_id = '', secret = '', algoritmo = 'RSA-SHA256', Intestazioni = NONE) KEY_ID è l'etichetta con cui il sistema server conosce la tua firma RSA o password. Le intestazioni sono l'elenco delle intestazioni HTTP che sono concatenate e utilizzate come oggetti di firma. Per impostazione predefinita è il minimo della specifica, l'intestazione HTTP della data. Segreto e algoritmo sono come sopra. La homepage di Product
Py-http-firma Software correlato