Solved

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

Posted on 2007-04-04
2
1,008 Views
Last Modified: 2013-11-24
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
0
Comment
Question by:InNoCenT_Ch1ld
2 Comments
 
LVL 27

Accepted Solution

by:
Nopius earned 500 total points
Comment Utility
Digest("users_password", "MD5", "ASCII") ?
0
 
LVL 3

Author Comment

by:InNoCenT_Ch1ld
Comment Utility
aha, actually i found this out a couple minute ago...

tks anyway ;-)
have a nice day
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now