Yes you can use a string key and xor the message with the ASCII of the characters in the string. Suppose your key is "EGG", then you will have to xor the first character of the message with ASCII of E, second character with ASCII of G, third character with ASCII of G, fourth character with E and so on. Hope this helps.