Alain asked: >I have the same output as with the original function (it shows up as >unprintable characters). >Are you saying that you get a different output between your version >and mine and between the Standard Runtime and the Console? Yes. When I run my version in the Console (Fast), using "futurebasic" as the word to scramble, and "alain" as the key, the function returns the following: The word to be scrambled is "futurebasic" The secret key word is "alain" The scrambled word is: kzyzwjgfxnh The word to be unscrambled is "kzyzwjgfxnh" The secret key word is "alain" The unscrambled word is: futurebasic When I run your version, either with Jay's suggestions or without them, i get (I don't know exactly how the scrambled word will appear on the Associated web site, but in my code it appears as non-printable characters in the form of small verticle rectangles): The word to be scrambled is "futurebasic" The secret key word is "alain" The scrambled word is: The word to be unscrambled is " " The secret key word is "alain" The unscrambled word is: futurebasic You would need to know the scrambled word and the key word to use the function for encryption. Hope this explains my dilemma. Best, Ken