You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

3h 17m 38s logged

Handcryption Status Update 0.0.3.9


What Happened?


Ok, big change to the workings of this device. Previously, this device could only work locally, but through my Raspberry Pi server and a domain through ngrok, I can make the device work on the cloud, and I have altered the server code and main device code to work this way.


Also, instead of using IPs to identify devices, I am using my own identification system that is like a phone number, a sequence of 9 digits. I recognize that this may be a small number of available sequences, but for now, it is a good amount. I can change this later.


So, to send messages now, instead of using a socket, the device sends an HTTP request to the ngrok domain hosted by the Pi. The request includes the message, the destination’s ID, and the sender’s (the device’s) ID. The server then stores this information in a “mailbox” -a collection of all sent messages. The receiving device, every 2 seconds, is sending an HTTP request to the server asking if there is anything in its mailbox. If so, the server returns the message(s) with the sender ID so the receiver can match that to a contact.


The cloud update has made my overall code length shorter, as most of the long sequences of code have been simplified to shorter HTTP requests.


Also, as promised, this is my part BOM: https://github.com/Joethebeast-coder/Handheld-Encryption-Device/tree/main/Hardware


What’s Next in 0.0.4?


 - Extra Add-on Device Features
 - Maybe more website interactivity
1
10

Comments 0

No comments yet. Be the first!