Skip to main content

A library for making encryption/decryption easier

Project description

## Human Security

Basic security functions for human beings, and abstraction on top of cryptography

## Examples

```
message = 'hello world'
h = HumanAES()
h.generate()
print 'secret key is', h.key
assert h.decrypt(h.encrypt(message)) == message

h = HumanRSA()
h.generate()
print h.public_pem()
print h.private_pem()
# h.load_private_pem(...)
# h.load_public_pem(...)

encrypted = h.encrypt(message)
decrypted = h.decrypt(encrypted)
assert decrypted == message

signature = h.sign(message)
assert h.verify(message, signature)
```

## License

BSD v3 - Created by Prof. Massimo Di Pierro, 2018

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for human-security, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size human_security-0.1.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page