Superalgebras in N=1 gauge theories