RC4 Bundle Integrate RC4 support as Symfony2 bundle Add your key as parameter # parameters.yml rc4_key: "this-is-my-super-secret-key" Get RC4 as service $obf = $this->container->get("rc4"); //Use it echo $obf->rc4("this-is-my-string");