shuffle code from sig to key