EN
The general theory of disorder in superconducting alloys was discussed. We use standard Wannier function representation and allow for diagonal and off-diagonal disorder. We generalized the coherent potential approximation in the version able to deal with off-diagonal disorder in normal systems to treat superconducting state. As an illustration we calculate the quasiparticle density of states and gap function of a d-wave superconductor. We show inter alia that the rate at which superconductivity disappears depends on the kind of disorder and for off-diagonal disorder it depends on the details of its realization.