Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: Encryption Algorithm
If you want a simple algorithm that isn't very secure then a simple XOR with a given key works. XOR the message with the key to encrypt. XOR again with the same key to decrypt.
Here's a simple one for real time data:
// Insert rawdata into array with insertion sort
if (datacount==0) datavals[0]=mcdataval;
for (i=datacount-1; i >=0; i--)
{
if (rawdataval < datavals[i]) datavals[i+1]=datavals[i];
else
{
datavals[i+1]=rawdataval...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.