public static String encrypt(final String pPassword) {
		String encryptedPassword = null;
		if (pPassword == null) {
			throw new NullPointerException();
		}
		try {

			final MessageDigest md = MessageDigest.getInstance("SHA");
			md.update((pPassword).getBytes("UTF-8"));
			encryptedPassword = new BASE64Encoder().encode(md.digest());

		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return encryptedPassword;
	}