Slicing optical beams: cryptographic algorithms for quantum networks