Python encrypt and decrypt file with rsa public key

broken image
broken image

client ( 'kms' ) try : response = kms_client.

broken image

Def retrieve_cmk ( desc ): '''Retrieve an existing KMS CMK based on its description :param desc: Description of CMK specified when the CMK was created :return Tuple(KeyId, KeyArn) where: KeyId: CMK ID KeyArn: Amazon Resource Name of CMK :return Tuple(None, None) if a CMK with the specified description was not found ''' # Retrieve a list of existing CMKs # If more than 100 keys exist, retrieve and process them in batches kms_client = boto3.

broken image