I am using eclipse, do I need to add it to my build path?  I don't
think I need to since it is not an external library?

I'll play around with it some more. Hopfully I can find something.

Michael

On Jun 10, 3:35 pm, Jake <[email protected]> wrote:
> Hey,
>
> The method below works fine for me.  No extra dependencies.  Just
> worked.  So, not at all helpful other than perhaps something wonky
> with your java install?
>
> Jake
>
> import java.security.MessageDigest;
>
> private static String md5Hex (String email) {
>         try {
>                 MessageDigest md = MessageDigest.getInstance("MD5");
>                 // more stuff
>         } catch (Exception ex) {
>                 /* No Action */
>         }
>
> }
>
> On Jun 10, 2:42 pm, Michael <[email protected]> wrote:
>
> > Any ideas on what is wrong then?
>
> > On Jun 10, 1:03 pm, Nacho Coloma <[email protected]> wrote:
>
> > > That should not be your 
> > > problem:http://code.google.com/appengine/docs/java/jrewhitelist.html
>
> > > I am using MD5 in AppEngine without issues.
>
> > > On Jun 10, 3:17 pm, Michael <[email protected]> wrote:
>
> > > > Hi,
>
> > > > I am pretty new to app engine (and Java) and I am seem to have run in
> > > > to a wall.  I want to do an MD5 hash and I was trying to use the
> > > > java.security package, but I get:
> > > >  [ERROR] Line 3: The import java.security cannot be resolved
>
> > > > I am thinking that it is because app engine can't use java.security?
>
> > > > Here is the MD5 code I have
>
> > > > import java.security.MessageDigest;
> > > > import java.security.NoSuchAlgorithmException;
> > > > ...
> > > > try {
> > > > MessageDigest digest = java.security.MessageDigest.getInstance("MD5");
> > > > digest.update("test".getBytes());
> > > > PW = digest.digest().toString();
>
> > > > } catch (NoSuchAlgorithmException e) {
> > > > }
>
> > > > Am I doing something wrong, or is there a different way to get a MD5
> > > > hash?  I also need to do the same thing client side using GWT if their
> > > > is any advice for that too.
>
> > > > Thanks
> > > > Michael
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to