This document analyzes a modified version of the RC4 stream cipher algorithm. The original RC4 algorithm is described, along with its key scheduling algorithm and pseudo-random generation algorithm. The modified algorithm makes a small change to the output generation by adding an additional parameter to the XOR operation. Tests were conducted to analyze the secrecy and performance of the modified algorithm compared to the original RC4 algorithm over variable key lengths and data sizes. The results showed that the modified algorithm had better secrecy and comparable or better performance than the original RC4 algorithm.