private String sha(String text) {
		StringBuilder key = new StringBuilder();
		try {
			MessageDigest md = MessageDigest.getInstance("sha1");
			md.update(text.getBytes());
			for (byte b : md.digest()) {
				key.append(Integer.toHexString((0xff & b) | 0xffffff00)
						.substring(6));
			}
		} catch (Exception ex) {
		}
		return key.toString();
	}