Solved

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

Posted on 2007-04-04
2
1,015 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
ID: 18855801
Digest("users_password", "MD5", "ASCII") ?
0
 
LVL 3

Author Comment

by:InNoCenT_Ch1ld
ID: 18855911
aha, actually i found this out a couple minute ago...

tks anyway ;-)
have a nice day
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
json example 39 130
What is the latest versions eclipse neon 2 138
thymeleaf natural templating vs JSP 2 65
Web Reply Form - PHP with Upload 4 53
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

939 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

7 Experts available now in Live!

Get 1:1 Help Now