add cross-platform option for string encryption