File Encryption for Modem Configuration | Telit Cinterion IoT Developer Community
November 18, 2016 - 12:20pm, 2013 views
Hello! :)
I created a .txt file in which I make the configuration for my BGS5T. Basically, after reading the file, I keep the variable values and set those values into what I need. It would be nice if I could encrypt that information so that it wouldn't be readable if someone got access to that said file. The problem is that I really would not know how to decode it in my program. What is the most simple way to encode a text file? How do I decode in my program?
What is the easiest way to do so?
Thanks
Hello,
This module supports JSR177 API. You could use it for the data decryption.
Here's the simple example of encryption and decryption with AES algorithm: https://iot-developer.thalesgroup.com/showcase/jsr177-encryption-and-dec...
Regards,
Bartłomiej
The thing is that I need to do the encryption outside the program. The .txt serves as a configuration for the behavior I will have on the modem, which means that I have to use some sort of encryption in that file and decrypt it in the program!
Hello,
This is only an example that shows how you can encrypt and decrypt the data inside the MIDlet. You can implement the encryption in the Java SE in quite a similar way (simpler) or use any other language or tool and just use the same encryption. You could also implement some simple algorithm on your own that would for example do some logic operation an each byte of data.
Regards,
Bartłomiej