The crossed product of a *-algebra by an endomorphism