public static String encryptString(String plainText, String passPhrase) throws ServerCryptoException {
try {
PBEStringCryptographer crypto = new DefaultPBEStringCryptographer(salt, 1);
crypto.setAlgorithm(algorithm);
crypto.setPassphrase(passPhrase);
byte[] encrypted = crypto.encrypt(plainText);
Base64 base64 = new Base64();
return new String(base64.encode(encrypted));
} catch (StringCryptographerException ex) {
throw new ServerCryptoException(ex);
} catch (StringEncryptionException ex) {