code: public static byte[] encodeSHA(byte[] rgbValue)
          throws NoSuchAlgorithmException
      {
          MessageDigest md = MessageDigest.getInstance("SHA");
      
          md.update(rgbValue);
          rgbValue = md.digest();
          return rgbValue;
      }
docs: Returns the string run through the SHA hash.
  
  @param unencoded the string to encode
  @return the encoded form of the unencoded string