refactor init rc4 cipher