Correcting code, adding PCipherMethod and raising different Warning and Exception message.