The simple XOR is OK for simple cases - slightly better security can be achieved using the standard AES256 cipher. The functionality must be included in both libraries and Java tool.