#include <stdio.h> int main() { // Caesar encryption , The letters in plaintext are shifted three places to the left or right of the alphabet , Move right here char input[6] = "hello"; char output[6]; int key = 3; int i,j; for (i = 0; i < 5; i++) { int a = input[i]; a += 3; output[i] = (char)a; } output[i] = '\0'; printf(" After encryption :%s\n", output); for (j = 0; j < 5; j++) { int b = output[j]; b -= 3; input[j] = (char)b; } input[j] = '\0'; printf(" After decryption :%s", input); return 0; }
当前位置:网站首页>Implementation of Caesar cipher
Implementation of Caesar cipher
2020-11-07 20:19:00 【PamShao】
版权声明
本文为[PamShao]所创,转载请带上原文链接,感谢
边栏推荐
- 是时候结束 BERTology了
- 不懂数据库索引的底层原理?那是因为你心里没点b树
- graph generation model
- What kind of technical ability should a programmer who has worked for 1-3 years? How to improve?
- Deep into web workers (1)
- 盘点那些争议最大的编程观点,你是什么看法呢?
- What should be considered in the promotion plan outside the station?
- Let's talk about the locks in the database
- In simple terms, the large front-end framework angular6 practical course (angular6 node.js 、keystonejs、
- Knowledge competition of garbage classification
猜你喜欢
华为HCIA笔记
HMS Core推送服务,助力电商App开展精细化运营
浅谈HiZ-buffer
使用LWA和Lync模拟外部测试无边缘单前端环境
Exception calling 'downloadstring' with '1' arguments: 'operation timed out'
Deep into web workers (1)
If you want to forget the WiFi network you used to connect to your Mac, try this!
Let you have a deep understanding of gitlab CI / CD principle and process
[note] error while loading pyv8 binary: exit code 1 solution
use Xunit.DependencyInjection Transformation test project
随机推荐
Huawei HCIA notes
What is the relationship between low code vs model driven?
Microservice - how to limit and fuse service current
想要忘记以前连接到Mac的WiFi网络,试试这个方法!
Facebook开源框架如何简化 PyTorch 实验
廬山真面目之二微服務架構NGINX版本實現
AC86U kx上网
ajax 载入html后不能执行其中的js解决方法
Application and principle of handlermethodargumentresolver
高级并发编程系列九(Lock接口分析)
On the coverage technology and best practice of go code
Design pattern of facade and mediator
Key points of C language -- index article (let you fully understand indicators) | understand indicators from memory | complete analysis of indicators
websocket+probuf.原理篇
CI / CD of gitlab continuous integrated development environment
小熊派开发板实践:智慧路灯沙箱实验之真实设备接入
Talk about sharing before paying
Code Review最佳实践
Web API series (3) unified exception handling
Bgfx compilation tutorial