How to aes 256 bit encrypt rf radio cc1101 with arduino

Dear community please help i want to build a rf radio that its communication is encrypted so receiver can't be high jack got the code from electronoobs website can some one make the code AES 256 encrypted for me please i mean please dear community

#include <ELECHOUSE_CC1101.h> 
#define size 1
int pot = A2;

byte TX_buffer[size]={0};
byte i;

void setup()
{
  pinMode(pot,INPUT);
  Serial.begin(9600);
  ELECHOUSE_cc1101.Init();
  for(i=0;i<size;i++)
  {
     TX_buffer[i]=i;
  }
}

void loop()
{
  int val = map(analogRead(pot),0,1024,0,255);
  TX_buffer[0] = val;
  ELECHOUSE_cc1101.SendData(TX_buffer,size);
  delay(1);
}

#include <ELECHOUSE_CC1101.h> 
int received_number = 0;
int LED = 3;

 void setup()
{
  pinMode(LED, OUTPUT);
  Serial.begin(9600);
  ELECHOUSE_cc1101.Init();
  ELECHOUSE_cc1101.SetReceive();
}

byte RX_buffer[11]={0};
byte size,i,flag;

void loop()
{
  if(ELECHOUSE_cc1101.CheckReceiveFlag())
  {
    size=ELECHOUSE_cc1101.ReceiveData(RX_buffer);
    for(i=0;i<size;i++)
    {
      received_number = RX_buffer[i];
      Serial.println(received_number);     
    }
    analogWrite(LED,received_number);
    ELECHOUSE_cc1101.SetReceive();
  }
}

The best place to start is to learn how to use AES encryption. There are several Arduino encryption libraries, and each comes with usage examples. You can also find tutorials on line.

There are other, simpler approaches, which would work to hide your potentiometer setting from the hackers.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.