- 전체
- 안드로이드 플랫폼
- 아두이노
- 라즈베리 파이
- 안드로이드 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
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
|---|---|---|---|---|
| 9 | 임베디드 기사 합격하셨는데요 어떻게 준비를해서 합격하겼나요 | 졸리운_곰 | 2017.12.28 | 610 |
| 8 |
2008 디지털제어산업기사 최종합격!
| 졸리운_곰 | 2017.08.27 | 371 |
| 7 |
[국가기술자격] 임베디드기사 출제기준
| 졸리운_곰 | 2015.03.27 | 403 |
| 6 |
2013년 제1회 임베디드기사 자격증
| 졸리운_곰 | 2014.01.26 | 1184 |
| 5 |
2013년 제1회 임베디드기사 최종합격!!!
| 가을의 곰을... | 2013.12.13 | 828 |
| 4 | 임베디드 기사 실기 출제기준 | 가을의 곰을... | 2013.11.03 | 1098 |
| 3 |
임베디드기사 1차 필기 시험 결과! 2차는 어렵지만 잘 되길...
| 가을의 곰을... | 2013.10.17 | 1171 |
| 2 |
국가기술자격 - 임베디드기사 출제기준
| 가을의 곰을... | 2013.09.29 | 615 |
| 1 |
2013년도 제1회 임베디드기사 필기 기출문제
| 가을의 곰을... | 2013.09.29 | 3718 |

