public static byte [ ] encodeSHA ( byte [ ] rgbValue ) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest . getInstance ( "SHA" ) ; md . update ( rgbValue ) ; rgbValue = md . digest ( ) ; return rgbValue ; }
Returns the string run through the SHA hash .