# The Concept regarding Vehicular Communications Based on Visible Light Communication and the IoT
## 2 Methodology and Design Parameters
### Proposal for Software Infrastructure and Architectural Components
The project aims to demonstrate that a quantization-based data communication network can be flexible in its secure backbone infrastructure and can make the step to the vehicular area. In summary, the project aims to realize wireless data communication in a point-to-point scenario but, at the same time, simultaneously secure all individual communication channels through quantum keys [57]. An extremely important aspect in any network is maintaining the confidentiality of the generated key at all times and, in cases where new external connections are introduced, generating authentication keys after a certain time interval. The security of wireless networks and their data security routines are based on encrypted connections centered on protocols for data transmission, such as WPA2 or WP3. Another aspect of security is related to the use of firewalls, which limit access to networks and, at the same time, do not let external entities connect. In addition, two- or three-step authentication systems can be used to increase safety. For our proposal regarding securing Li-Fi data communication networks for vehicles, we considered aspects related to the creation of an encryption and decryption algorithm to limit access to the infrastructure created. Li-Fi networks offer a high degree of security because this technology is bidirectional and can only be accessed through certain decoding procedures with dedicated systems. There are no generally valid programming languages that can be used to create security protocols in Li-Fi networks or to define a security standard to date. Therefore, this approach is extremely important for the scientific environment and, as a result of the experience accumulated in this field, presents a viable alternative through which this technology will soon be able to branch out into more fields. Even if technological advances favor communication based on the 802.11 p/a standard, 4G, 5G, and even 6G, the complementarity and usefulness of VLC are undeniable [58; 59]. The encryption and formation of a security protocol at the physical level in a data network based on VLC could have the following structure (Algorithm 1). ```
fromvlc_supp importSEC1_SUPP vlc =SEC1_SUPP(lifio0) vlc_set_network('usr', 'pass', Li-Fi1#2) vlc.enable_network()
```  
**Algorithm 1**Pseudocode for the encryption process for data at the physical level of the network. In Algorithm 1, an attempt was made to create a much stronger encryption process compared to those known from the much more widespread networks that encrypt data within wireless networks. In the previously presented case, security keys are outlined in the function header, after which the imports are undertaken and the user and password are validated sequentially as the first iterator. In Algorithm 2, a firewall-type procedure is outlined that can manage the network more efficiently, restrict access to it, and prevent external attacks. Towards the end, the created traffic network and its port are also highlighted. A final step in accomplishing the process of securing a network is authentication and the creation of a way to validate previous data. Therefore, in Algorithm 3, all the data from the encrypted validation files are imported, along with the user input data to be filled in by the handler, and the password is maintained at the same time as the credentials. All the data are saved in a nomenclature in the VLC database and requested for access and validation through iterative instance comparators. In the last stage, the algorithm decides whether access is allowed depending on the degree of portability of the user and the password. ```
frompsslibvlc.hash importsha256_crypt usr =input(\"Enter user: \") pass =input(\"Enter pass: \") stored_passvlc = \"hashed_pass_from_databasevlc\" ifshubvlc_crypt.verify(pass, stored_pass): print(\"Access granted LiFi.\") else: print(\"Access denied to Li-Fi.\")
```  
**Algorithm 2**Pseudocode for the import and filtering of access data for the generated address.