diff --git a/src/main/java/fr/ans/psc/pscextract/service/TransformationService.java b/src/main/java/fr/ans/psc/pscextract/service/TransformationService.java index f0abb2a..d5b1a67 100644 --- a/src/main/java/fr/ans/psc/pscextract/service/TransformationService.java +++ b/src/main/java/fr/ans/psc/pscextract/service/TransformationService.java @@ -388,7 +388,7 @@ private MessageDigest writeExtractEntry(ExtractionController extractionControlle zos.putNextEntry(zipEntry); byte[] buffer=new byte[4096]; int nbCopied = fileContent.read(buffer); - MessageDigest digestEngine=MessageDigest.getInstance("SHA256"); + MessageDigest digestEngine=MessageDigest.getInstance("SHA-256"); while(nbCopied>=0){ zos.write(buffer, 0, nbCopied); // Why read twice when we can digest on the way.