Encrypts a string into binary and can be saved as a text file - JAVA-