home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-07-30 | 385 b | 13 lines |
- package borland.samples.intl.util;
-
- /**
- * A very simple password mangling utility, used to encipher
- * users' passwords in the customer database.
- * Simply returns the characters of the password in reverse order.
- */
- public class PasswordMangler {
- public static String manglePassword(String password) {
- return new String(new StringBuffer(password).reverse());
- }
- }
-