web/src/main/java/org/springframework/security/web/authentication/rememberme/TokenBasedRememberMeServices.java
protected String makeTokenSignature(long tokenExpiryTime, String username,
			String password) {
		String data = username + ":" + tokenExpiryTime + ":" + password + ":" + getKey();
		MessageDigest digest;
		try {
			digest = MessageDigest.getInstance("MD5");
		}
		catch (NoSuchAlgorithmException e) {
			throw new IllegalStateException("No MD5 algorithm available!");
		}

		return new String(Hex.encode(digest.digest(data.getBytes())));
	}
protected String makeTokenSignature(long tokenExpiryTime, String username,
			String password) {
		String data = username + ":" + tokenExpiryTime + ":" + password + ":" + getKey();
		MessageDigest digest;
		try {
			digest = MessageDigest.getInstance("MD5");
		}
		catch (NoSuchAlgorithmException e) {
			throw new IllegalStateException("No MD5 algorithm available!");
		}

		return new String(Hex.encode(digest.digest(data.getBytes())));
	}
protected String makeTokenSignature ( long tokenExpiryTime , String username , String password ) { String data = username + ":" + tokenExpiryTime + ":" + password + ":" + getKey ( ) ; MessageDigest digest ; try { digest = MessageDigest . getInstance ( "MD5" ) ; } catch ( NoSuchAlgorithmException e ) { throw new IllegalStateException ( "No MD5 algorithm available!" ) ; } return new String ( Hex . encode ( digest . digest ( data . getBytes ( ) ) ) ) ; }
Calculates the digital signature to be put in the cookie. Default value is MD5
("username:tokenExpiryTime:password:key")
Calculates the digital signature to be put in the cookie . Default value is MD5 ( username : tokenExpiryTime : password : key )