NExchange - mathix420/NimingCypher GitHub Wiki

Exchange key 🔑 📧

How to initialize NExchange

from NimingCypher import NExchange
exchanger = NExchange(2048)
print('Your public key :\n', exchanger.public)

How to prove your identity

your_proof = exchanger.identity_proof("your_username")
print(your_proof) #send this

How to test an identity proof

result = exchanger.verify_identity(received_proof, "emitter_username", "Emitter_Public_Key")
print(result) #Boolean value

How to encrypt a key

crypto = exchanger.encrypt_key("https://YourKey.com","Recipient_Public_Key")
print(crypto)

How to decrypt a key

the_key = exchanger.decrypt_key("crypto")
print(the_key)