Method and Apparatuses for Data Integrity and Security for Communications in Smart Power Systems