br.com.arsmachina.authentication.controller
Interface PasswordEncrypter
- All Known Implementing Classes:
- DummyPasswordEncrypter
public interface PasswordEncrypter
Interface used to encrypt passwords. It is recommended to use a secure cryptographic hash
function, but any one can used (including no encrypting at all).
- Author:
- Thiago H. de Paula Figueiredo
encrypt
String encrypt(String password)
- Encrypts a
password. If it is encrypted already, it must return it
unchanged.
- Parameters:
password - a String. It cannot be null.
- Returns:
- a
String.
Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.