The synaps.crypto Module

Wrappers around standard crypto data elements.

Includes root and intermediate CAs and SSH key_pairs.

ca_folder(project_id=None)
ca_path(project_id=None)
compute_md5(fp)

Compute an md5 hash.

Parameters:fp (file) – File pointer to the file to MD5 hash. The file pointer will be reset to the beginning of the file before the method returns.
Return type:tuple
Returns:the hex digest version of the MD5 hash
crl_path(project_id=None)
decrypt_text(project_id, text)
decryptor(key)

Simple symmetric key decryption.

encryptor(key)

Simple symmetric key encryption.

ensure_ca_filesystem()

Ensure the CA filesystem exists.

fetch_ca(project_id=None)
fetch_crl(project_id)

Get crl file for project.

generate_fingerprint(public_key)
generate_key_pair(bits=1024)
key_path(project_id=None)
revoke_cert(project_id, file_name)

Revoke a cert by file name.

sign_csr(csr_text, project_id=None)

Previous topic

The synaps.context Module

Next topic

The synaps.exception Module

This Page