jodd-core/src/main/java/jodd/crypt/PBKDF2Encryptor.java
public String encrypt(final String str) {
		try {
			byte[] utf8 = StringUtil.getBytes(str);		// encode the string into bytes using utf-8
			byte[] enc = ecipher.doFinal(utf8); 	// encrypt
			return Base64.encodeToString(enc);		// encode bytes to base64 to get a string
		} catch (Throwable ignore) {
			return null;
		}
	}
public String encrypt(final String str) {
		try {
			byte[] utf8 = StringUtil.getBytes(str);		// encode the string into bytes using utf-8
			byte[] enc = ecipher.doFinal(utf8); 	// encrypt
			return Base64.encodeToString(enc);		// encode bytes to base64 to get a string
		} catch (Throwable ignore) {
			return null;
		}
	}
public String encrypt ( final String str ) { try { byte [ ] utf8 = StringUtil . getBytes ( str ) ; // encode the string into bytes using utf-8 byte [ ] enc = ecipher . doFinal ( utf8 ) ; // encrypt return Base64 . encodeToString ( enc ) ; // encode bytes to base64 to get a string } catch ( Throwable ignore ) { return null ; } }
Symmetrically encrypts the string.
Symmetrically encrypts the string .