Code example for MessageDigest

Methods: digest, reset

0
		else 
			return false; 
	} 
	 
	public String getHash(String password) {
		digest.reset();
		byte[] data=digest.digest(password.getBytes());
		return bin2hex(data);
	} 
	static String bin2hex(byte[] data) {
		return String.format("%0" + (data.length*2) + "X", new BigInteger(1, data));
	} 
	 
	public void fadeAnimation(View appear, View dissapear){
		//Appearing 
		if (appear != null){
			ObjectAnimator alphaShow = ObjectAnimator.ofFloat(appear,"alpha", 0f, 1f);
			alphaShow.setDuration(300);
			alphaShow.start();
			appear.setVisibility(View.VISIBLE);
			appear.bringToFront();