Text this: A lightweight security scheme for advanced metering infrastructures in smart grid