Pyelliptic

wrapper openssl python
Baixe Agora

Pyelliptic Classificação e resumo

Propaganda

  • Rating:
  • Licença:
  • GPL
  • Preço:
  • FREE
  • Nome do editor:
  • Yann GUIBET
  • Site do editor:
  • https://github.com/yann2192/

Pyelliptic Tag


Pyelliptic Descrição

Pyelliptic é um wrapper python de alto nível para a Biblioteca Cryptographic OpenSSL.Para GNU / Linux e Windows.Example: #! / Usr / bin / Python Import Criptografia Pyelliptic # simétrica IV = pyelliptic.cipher.gen_iv ('AES-256-CFB' ) ctx = pyelliptic.cifer ("secretakey", iv, 1, cifras = 'AES-256-CFB') ctx.update ('test1') Ciphertext = ctx.final () ctx2 = pyelliptic.cifer ("Secretakey", IV, 0, Cifras = 'AES-256-CFB') Imprimir CTX2.Ciphering (Ciphertext) # criptografia assimétrica Alice = pyelliptic.ecc () # curva padrão: sect283r1 bob = pyelliptic.ecc ( curva = 'sect571r1') Ciphertext = Alice.Encrypt ("Olá Bob", Bob.get_Pubkey ()) Imprimir Bob.Decrypt (Ciphertext) Assinatura = Bob.Sign ("Olá Alice") # trabalho de Alice: Imprimir pyelliptic.ecc ( pubkey = bob.get_pubkey ()). Verificar (assinatura, "Olá Alice") # Erro !!! Experimente: key = alice.get_ecdh_key (bob.get_pubkey ()) exceto: Imprimir ("para o acordo de chave ECDH, as teclas devem ser definidas na mesma curva!") Alice = pyelliptic.ecc (curva = 'sect571r1') Imprimir Alice .get_ecdh_key (bob.get_pubkey ()). Codifique ('hex') Imprimir bob.get_ecdh_key (alice.get_pubkey ()). Codifique ('hex') página inicial do produto


Pyelliptic Software Relacionado

tnefparse

Uma biblioteca de decodificação TNEF escrita em Python, sem dependências externas ...

56

Download