An Exclusive Or encryption function for a C string