# Security Hash Algorithm

**URL:** <https://forum.search-guard.com/t/security-hash-algorithm/378>\
**Category:** Search Guard\
**Created:** [January 31, 2017, 6:36pm UTC](https://forum.search-guard.com/t/security-hash-algorithm/378 "2017-01-31T18:36:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Cantrill](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@Jeff\_Cantrill](https://forum.search-guard.com/u/Jeff_Cantrill)\
**Post date:** [January 31, 2017, 6:36pm UTC](https://forum.search-guard.com/t/security-hash-algorithm/378/1 "2017-01-31T18:36:21Z")

</div>

I’m being asked what the security hash algorithm provided by SG. Is it sha256, or sha384? Is there a place in the code I can point our BU folks to?

---

<div class="post-metadata">

**Author:** ![searchguard\_google\_group](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/searchguard_google_group/32/462_2.png) [@searchguard\_google\_group](https://forum.search-guard.com/u/searchguard_google_group)\
**Post date:** [January 31, 2017, 7:25pm UTC](https://forum.search-guard.com/t/security-hash-algorithm/378/2 "2017-01-31T19:25:34Z")

</div>

It's bcrypt ([https://github.com/floragunncom/search-guard/blob/master/src/main/java/com/floragunn/searchguard/auth/internal/InternalAuthenticationBackend.java#L105\](https://github.com/floragunncom/search-guard/blob/master/src/main/java/com/floragunn/searchguard/auth/internal/InternalAuthenticationBackend.java#L105%5C)) for the intenal user backend as well as  
SHA 256 ([https://github.com/floragunncom/search-guard/blob/master/src/main/java/com/floragunn/searchguard/user/AuthCredentials.java#L75\](https://github.com/floragunncom/search-guard/blob/master/src/main/java/com/floragunn/searchguard/user/AuthCredentials.java#L75%5C)) for in memory cache

> **···**
>
> > Am 31.01.2017 um 19:36 schrieb jcantril@redhat.com:
> > 
> > I'm being asked what the security hash algorithm provided by SG. Is it sha256, or sha384? Is there a place in the code I can point our BU folks to?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "Search Guard" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.  
> > To post to this group, send email to search-guard@googlegroups.com.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/search-guard/7f08c578-3be2-4940-8c95-63c186837064%40googlegroups.com\](https://groups.google.com/d/msgid/search-guard/7f08c578-3be2-4940-8c95-63c186837064%40googlegroups.com%5C).  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).
