# Library not found for class Digest:SAH2 -- digest/sha2

**URL:** <https://www.ruby-forum.com/t/library-not-found-for-class-digest-sah2-digest-sha2/210642>\
**Category:** Rails\
**Created:** [August 12, 2011, 9:27pm UTC](https://www.ruby-forum.com/t/library-not-found-for-class-digest-sah2-digest-sha2/210642 "2011-08-12T21:27:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 12, 2011, 9:27pm UTC](https://www.ruby-forum.com/t/library-not-found-for-class-digest-sah2-digest-sha2/210642/1 "2011-08-12T21:27:37Z")

</div>

I get this error in Firefox when I (try to) implement password  
encryption as per Agile Web D…

I put “require ‘digest/sha2’” at the top of my user controller as it  
suggests, but when I try to edit then save a user record, I get the  
message in the subject of this post.

The Ruby language installation has the …/digest/sha2 subdirectory, so  
am I supposed to tell rails where it is, or do something else to make  
it available?

Thanks in advance for any help. --Fred
