LibraryOfCongress / bagit-python

Work with BagIt packages from Python.
http://libraryofcongress.github.io/bagit-python
216 stars 85 forks source link

Use only "sha256" for the checksum in BagIt module #159

Closed marcelomgarcia closed 2 years ago

marcelomgarcia commented 2 years ago

We are using 'BagIt' in our Python code, and we wold like to disable the 'sha512' for the library. For us, two checksum is an overkill, and for large directories, it can be a problem. Is there a way to specify which checksum algorithm to use? Something like this

mybag['checksum'] = ['sha256]
marcelomgarcia commented 2 years ago

Sorry,for the noise. I found how to specify the the checksum on the initialization of the bag