Developed at the Faculty Engineering of University of Porto, this method is efficiently used to encapsulate Perovskite Solar Cells and Dye-Sensitized Solar Cells in-between two glass substrates, protecting the devices from leakage and harm from moisture or air. The hermeticity complies with the Mil-Std-883H, delivering unprecedent long-term stability, which is critical for the industrialization of second and third generation photovoltaic cells.