public StringEncryptor() {
		// if there is not default key create one
		if (StringEncryptor.defaultKey == null) {
			try {
				KeyGenerator keyGen = KeyGenerator.getInstance("AES");
				keyGen.init(128);
				StringEncryptor.defaultKey = (SecretKeySpec) keyGen
						.generateKey();
			} catch (NoSuchAlgorithmException e) {
				System.out.println(e.getMessage());
			}
		}
		// if there is no cypher create one
		if (cypher == null) {
			try {
				cypher = Cipher.getInstance("AES");
			} catch (NoSuchAlgorithmException e) {
				System.out.println(e.getMessage());
			} catch (NoSuchPaddingException e) {
				System.out.println(e.getMessage());
			}
		}

	}