Expand description
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.
To learn more about the format visit the Crypt4GH
CLI & Format Documentation
Modules§
- error
Crypt4GH
Errors.- header
- Generate and parse a
Crypt4GH
header. - keys
- Utility to read Crypt4GH-formatted keys.
Structs§
Constants§
- SEGMENT_
SIZE - Size of the encrypted segments.
Functions§
- body_
decrypt - Decrypts the content read using the keys provided.
- body_
decrypt_ parts - Decrypts the specified content read using the keys provided.
- decrypt
- Reads from the
read_buffer
and writes the decrypted data towrite_buffer
. - encrypt
- Reads from the
read_buffer
and writes the encrypted data towrite_buffer
. - encrypt_
header - Builds a header with a random session key
- encrypt_
segment - Encrypts a segment.
- rearrange
- Reads from the
read_buffer
and writes the rearranged data towrite_buffer
. - reencrypt
- Reads from the
read_buffer
and writes the reencrypted data towrite_buffer
.