Sunday, May 5, 2013

Re: Hashing on client

I was surprised that GWT supports MessageDigest as its not part of the JRE Emulation documentation (https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation) . Seems like its slightly out of date.

Nevertheless when you take a look at the source code you can see that GWT only supports MD5 for MessageDigest: https://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/user/super/com/google/gwt/emul/java/security/MessageDigest.java

Note that the linked implementation is the super source version that is used by the GWT compiler when it generates the JS code for your app. During DevMode you are using the standard Java MessageDigest which also supports SHA. Thats why you see the difference.


-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate