[−][src]Crate crypt4gh
Bob wants to send a message to Alice, containing sensitive data. Bob uses Crypt4GH, the Global Alliance approved secure method for sharing human genetic data.
crypt4gh, a Python tool to encrypt, decrypt or re-encrypt files, according to the GA4GH encryption file format.

Example
Alice and Bob generate both a pair of public/private keys.
crypt4gh keygen --sk alice.sec --pk alice.pub
crypt4gh keygen --sk bob.sec --pk bob.pub
Bob encrypts a file for Alice:
crypt4gh encrypt --sk bob.sec --recipient_pk alice.pub < file > file.c4gh
Alice decrypts the encrypted file:
crypt4gh decrypt --sk alice.sec < file.c4gh
Modules
| header | |
| keys |
Structs
| Keys |
Constants
| SEGMENT_SIZE |
Functions
| decrypt | |
| encrypt | |
| encrypt_segment | |
| rearrange | |
| reencrypt |