Skip to content

eos175/pycrypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCrypto

rapida lib para criptografia by eos175

PyCrypto usa pycryptodome para AES y fastecdsa para ECC. Estos paquetes estan escrito en C y tiene hw acceleration

Installation

python3 -m venv .venv
. .venv/bin/activate
pip install git+ssh://git@github.com/eos175/pycrypto.git

API

AES

def cfb128_encrypt(data: bytes, key: bytes, iv: bytes) -> bytes: ...
def cfb128_decrypt(data: bytes, key: bytes, iv: bytes) -> bytes: ...

def gcm_encrypt(data: bytes, key: bytes, nonce: bytes) -> bytes:
def gcm_decrypt(data: bytes, key: bytes, nonce: bytes, tag: bytes) -> bytes or None: ...

def ccm_encrypt(data: bytes, key: bytes, nonce: bytes) -> bytes: ...
def ccm_decrypt(data: bytes, key: bytes, nonce: bytes, tag: bytes) -> bytes or None: ...

ToDo

  • agregar el resto de la API al readme
  • crear setup

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages