- 전체
- 안드로이드 플랫폼
- 아두이노
- 라즈베리 파이
- 안드로이드 ADK
- Embedded HardWare
- Embedded FirmWare
- Embedded Platform
- Embedded SoftWare
- 임베디드 리눅스
- Hobby Electronics
- 임베디드기사 - 국가기술자격
- VHDL 디지털설계
- M2M_IoT_사물지능통신
- 아마추어 로봇
- EDA - Electronic CAD
- 로봇공학
- 국가기술자격 로봇 제작 개발 자격증
- IoT (임베디드 인터넷)
아두이노 [아두이노 arduino] Simple encryption using XOR operator
2024.03.11 02:17
[아두이노 arduino] Simple encryption using XOR operator
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
char message[] = "Hello, World!"; // original message
char key = 'K'; // encryption key
int len = strlen(message);
for (int i = 0; i < len; i++) {
message[i] = message[i] ^ key; // XOR operation with key to encrypt character
}
// After execution, the contents of the message will be encrypted
Serial.println(message);
//복호화
for (int i = 0; i < len; i++) {
message[i] = message[i] ^ key; // XOR operation with key to encrypt character
}
// After execution, the contents of the message will be encrypted
Serial.println(message);
}
void loop() {
// put your main code here, to run repeatedly:
}
[출처] https://wokwi.com/projects/389592909529965569
[아두이노 arduino] Simple encryption using XOR operator
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
char message[] = "Hello, World!"; // original message
char key = 'K'; // encryption key
int len = strlen(message);
for (int i = 0; i < len; i++) {
message[i] = message[i] ^ key; // XOR operation with key to encrypt character
}
// After execution, the contents of the message will be encrypted
Serial.println(message);
//복호화
for (int i = 0; i < len; i++) {
message[i] = message[i] ^ key; // XOR operation with key to encrypt character
}
// After execution, the contents of the message will be encrypted
Serial.println(message);
}
void loop() {
// put your main code here, to run repeatedly:
}
[출처] https://wokwi.com/projects/389592909529965569
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
댓글 0
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 7 |
[Embedded Software] ARM Cortex-M : printf()를 만들어 보자
| 졸리운_곰 | 2023.04.02 | 197 |
| 6 | SQLite를 사용해야 하는 이유 | 졸리운_곰 | 2021.10.17 | 237 |
| 5 |
[마이크로콘트롤러에서 Python구동을 위한] micropython-docs.pdf
| 졸리운_곰 | 2020.10.18 | 272 |
| 4 | QT Embedded와 Qtopia Core와의 차이점 | 가을의곰 | 2014.01.07 | 615 |
| 3 | [QT] QT/Embedded 설치하기 | 가을의곰 | 2014.01.07 | 1254 |
| 2 |
[QT] Qt Embedded 환경 설정
| 가을의곰 | 2014.01.07 | 1295 |
| 1 |
[QT] - 저의 QT Embedded 개발환경
| 가을의곰 | 2014.01.07 | 872 |

