home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / jbuilder / jsamples.z / PasswordMangler.java < prev    next >
Encoding:
Java Source  |  1997-07-30  |  385 b   |  13 lines

  1. package borland.samples.intl.util;
  2.  
  3. /**
  4.  * A very simple password mangling utility, used to encipher
  5.  * users' passwords in the customer database.
  6.  * Simply returns the characters of the password in reverse order.
  7.  */
  8. public class PasswordMangler {
  9.   public static String manglePassword(String password) {
  10.     return new String(new StringBuffer(password).reverse());
  11.   }
  12. }
  13.