# Warning: Patch hash format changed (breaking change)

**URL:** <https://discourse.pijul.org/t/warning-patch-hash-format-changed-breaking-change/95>\
**Category:** Development\
**Created:** [October 2, 2017, 4:33am UTC](https://discourse.pijul.org/t/warning-patch-hash-format-changed-breaking-change/95 "2017-10-02T04:33:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [October 10, 2017, 7:22am UTC](https://discourse.pijul.org/t/warning-patch-hash-format-changed-breaking-change/95/6 "2017-10-10T07:22:10Z")

</div>

> [@lambda](#):
>
> Is there any reason for using SHA-512?

Yes. We chose the hardest standardised hash at the time, because it’s always easier to decrease the security level later than to run into security problems.

That said, the design of libpijul on hashes is entirely forward-compatible: actually, the first byte of our patch identifiers indicates which hash function to use (in base64, all hashes started with `A`).

We might add Blake2s instead of SHA2 in the next release, which is capable of producing shorter hashes. Older patches will keep their identifier, though.

---

_[View the full topic](https://discourse.pijul.org/t/warning-patch-hash-format-changed-breaking-change/95)._
