adding code to encrypt arbitrary strings