Adjusted encrypt/decrypt to take in strings