The document discusses a new algorithm called REMS (Re modified Enhanced Merger Sorter Network) for implementing encryption algorithms in hardware. REMS improves upon previous algorithms like MEMS by providing richer encryption, consuming less power, and better representing the underlying GRP algorithm. It divides the data into left and right datapaths with different control words for different stages, preserving most significant bits to avoid loss of information. Simulation results show REMS reduces the number of multiplexers and delay compared to previous approaches.