Crate crypt4gh

Source
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. How Crypt4GH works

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§

Keys
Key information.
WriteInfo
Write buffer wrapper.

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 to write_buffer.
encrypt
Reads from the read_buffer and writes the encrypted data to write_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 to write_buffer.
reencrypt
Reads from the read_buffer and writes the reencrypted data to write_buffer.