Using shortwave rays installed in cellphones and airport security scanners, researchers have developed a technique that detects skin lesions and determines whether they are cancerous or benign — a technology that could ultimately be incorporated into a handheld device that could rapidly diagnose skin cancer without a scalpel in sight.