public static String encrypt(final String text) {

		String encryptedText = null;

		TripleDesCipher cipher = new TripleDesCipher();

		cipher.setKey("GWT_DES_KEY_16_BYTES".getBytes());

		try {

			encryptedText = cipher.encrypt(String.valueOf(text));

		} catch (DataLengthException e1) {
			e1.printStackTrace();
			// Window.alert(e1.getMessage());
		} catch (IllegalStateException e1) {
			e1.printStackTrace();
			// Window.alert(e1.getMessage());
		} catch (InvalidCipherTextException e1) {
			e1.printStackTrace();
			// Window.alert(e1.getMessage());
		}

		return encryptedText;
	}