The idea has been long in the making, but could be difficult to implement and lead to unintended consequences, former officials and security experts said.