Smart and secure integration of renewable energy into the electrical grid | Synapse