Design of a hyperchaotic cryptosystem based on identical and generalized synchronization