Skip to content

Conversation

@jsreynaud
Copy link

Enedis add an other method for decrypt files. There is no IV, only a key. IV is dynamic and shipped inside the data bloc:
https://www.enedis.fr/sites/default/files/documents/pdf/Enedis-MOP-CF_080E.pdf

Example of encoded file with associated key:

ENEDIS.0525_fichier_chiffre.txt
key.txt

Copy link
Contributor

@philpep philpep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for this.

Maybe instead of adding a new dynamic-decrypt add a --dynamic option to decrypt command and make it mutually exclusive with --iv? See https://docs.python.org/3/library/argparse.html#mutual-exclusion

@jsreynaud
Copy link
Author

I have changed the usage as your request. Note that I had modified arg_from_env to allow this working:

It is not possible to have a member of mutually exclusive group member with required = True... So I add an optional parameter...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants