Simple Code for AES and DES algorithms for Arduino Uno or ESP32 - arduino-uno

I want to send a message through the LoRa device and I need to encrypt the data on the sender side and decrypt it in the receiver. So, I need simple code for this process using AES and DES and their libraries. Can anyone help me with that?

Related

Sending and receiving encrypted and signed documents in a local client server scenario

I want to build a local cilen-server which can transfer a file which will be encrypted by RSA algo and signed and the receiver will decrypt that file and will verify the signature. I found many tutorials on how to build a client server scenario in Python but to send the encrypted file I need to first convert the large file into smaller block and I don't know how to do that and after the receiving the encrypted file how I can setup the receiver that it will automatically decrypt the file using the keys that are exchanged between them at the time of setting up of the connection and verify the signature ? I am hoping to do this without using PyCrypto or any other built in libraries. Is there any tutorial which can help me understand on how to do this in python ? Or any structured way of solving this problem. Looking forward to suggestion. Thank you.

BLE: LE Secure Connection with Xamarin

We're talking about BLE. Right now Im using the Plugin.BLE library and it's working quite fine. Now Im in the need of using the LE Secure Connection (with the "just works" method) in order to send/receive encrypted data.
I've read lots of documentation about how the protocol works, but have no idea of how actually implementing it in Xamarin and wasn't able to find anything on this.
With the Plugin.BLE one can take advantage of a very simple APIs to connect to a Device.
Is there any library that provides similar simplicity and enabling an LE Secure Connection?
If not, how can I connect in Android & iOS to a BLE device using a secure channel?
Thank you very much
The pairing is handled by the Bluetooth stack and not by the application, so you can't affect this in any way. However, from Marshmallow and onward, BLE pairing will use Secure Connections as long as the second device supports it. Not sure about iOS.

Sending data to Arduino Uno (w/ Ethernet shield) from Parse.com

Is there any way to send data from Parse to an Arduino Uno with an Ethernet shield? I'm totally in the dark on this one and can only find documentation to send data from the Arduino Uno to Parse which I was successfully able to accomplish.
Thanks in advance for the help!
You could setup a "web server" or just a server accepting tcp requests and by using a software to bridge Parse and Arduino that sends a specific call to the Arduino.
So you need to write a software that get the info from Parse, then send it over to the Arduino like /something/happened

LAN traffic encryption on Windows

I'm working on a study project and need to create a software which should encrypt LAN traffic between computers with Windows. So I need to capture, encrypt and resend all outbound traffic, and capture and decrypt all inbound traffic.
Currently I see two way to do it:
1) IP over UDP. I need encrypt IP packets and send them through UDP link, receive them and decrypt.
2) Encrypt payload of IP packets and decrypt it on another side.
I actually don't know how to do it better and where to start. All suggestions/examples will be helpful.
If you really only need to encrypt the traffic you can simply install a "manually keyed" IPSec SA. See instructions at MSDN
That being said, encryption is the easy part. Authenticating the peers and key agreements is the hard part.
Cryptography is hard to get right, so you definitely want do not want to invent a probably insecure wheel, but opt for a peer-reviewed standard solution, such as the Internet Key Exchange protocol. There is an (unfortunately discontinued) internet draft of a minimal IKE implementation.
Please note that it is perfectly OK to use IKEv2 as the key agreement / authentication protocol for any application - not just for ESP. But if you need to encapsulate ALL IP, Encapsulating Security Payload in tunnel mode is your friend, and the lucky thing here is that ANY OS that is IPv6 compliant MUST implement it, so using ESP is in practice just a matter of installing the key material to your OS kernel's IP stack.
In case you need code samples, I have made a minimal proof-of-concept level implementation of an initiating end of an IKEv2 peer in Python. A Perl implementation doing the same can be found from these IETF proceedings slides

How to send sms from a VB application via USB GSM modem (Huawei E1731)

I am creating a small VB project and I want to send some information through SMS. I tried to find solutions in here many threads but can get one.
I am using Huawei E1731 3G USB modem, which is capable of sending and receiving sms through its official software. How can i use the modem to send a fixed message to particular number by getting the number from text box in a form?
Hopefully you are using VB.NET and not VB6.
Here is a solution in C#.NET which you should easily be able to convert to VB.NET :
http://sharp-coders.blogspot.in/2011/12/send-sms-using-at-commands-via-gms.html

Resources