org.apache.catalina.realm.RealmBase.Digest question

Digest

public static final java.lang.String Digest(java.lang.String credentials,
                                            java.lang.String algorithm,
                                            java.lang.String encoding)

    Digest password using the algorithm especificied and convert the result to a corresponding hex string. If exception, the plain credentials string is returned

    Parameters:
        credentials - Password or other credentials to use in authenticating this username
        algorithm - Algorithm used to do the digest
        encoding - Character encoding of the string to digest
/-------------------------------------------------------------------------------------------------------------------------------/

can anyone provide me with a sample code of how to use this method? tks
LVL 3
InNoCenT_Ch1ldAsked:
Who is Participating?
 
NopiusConnect With a Mentor Commented:
Digest("users_password", "MD5", "ASCII") ?
0
 
InNoCenT_Ch1ldAuthor Commented:
aha, actually i found this out a couple minute ago...

tks anyway ;-)
have a nice day
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.