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

To learn more about the format visit the Crypt4GH CLI & Format Documentation

Modules

header

Generate and parse a Crypt4GH header.

keys

Utility to read Crypt4GH-formatted keys.

Structs

Keys

Key information.

Constants

SEGMENT_SIZE

Size of the encrypted segments.

Functions

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_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.