Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

python_cpp

Exemple d'utilisation d'un composant en python Utilise pybind11 apres git clone, faire:

cd python_cpp
git submodule init
git submodule update

Pour compiler

cd hello
make

Pour utiliser

python3
>>> import hello_component
>>> hello_component.greet()
'hello, world'
>>> hello_component.getVersion()
'1.0'
>>> 

Sujet Création d'un composant clé permettant le chiffrement asymetrique utilisant la courbe secp256k1

utiliser micro-ecc qui est deja un sous repertoire (git submodule) de composant_cle
test a realiser:

import composant_cle
macle = composant_cle.cle()
macle.initialize(”4b8e29b9b0dddd58a709edba7d6df6c07ebdaf5653e325114bc5318c238f87f0”)
macle.getPrivateKey() -> retourne la valeur d’initialisation
macle.getPublicKey() -> retourne “f2ce1e40befbebaf4045f1a6d126b7b949e7d5adea33f84a09a904093456f4fd504b1f70755be4cef27625b1e6b893e05ffeb361f2971fda1d6be5e730a74303”

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages