#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]所创,转载请带上原文链接,感谢
边栏推荐
- Chinese sub forum of | 2020 PostgreSQL Asia Conference: Pan Juan
- Talk about sharing before paying
- Exclusive interview with Yue Caibo
- If you want to forget the WiFi network you used to connect to your Mac, try this!
- 9. Routingmesh service communication between clusters
- 大数据算法——布隆过滤器
- HMS Core推送服务,助力电商App开展精细化运营
- 11. Service update
- 留给快手的时间不多了
- 模型预测准确率高达94%!利用机器学习完美解决2000亿美元库存难题
猜你喜欢
随机推荐
技术债务是对业务功能缺乏真正的理解 -daverupert.com
编程界大佬教你:一行Python代码能做出哪些神奇的事情?
Design pattern of facade and mediator
带你深入了解 GitLab CI/CD 原理及流程
留给快手的时间不多了
大数据算法——布隆过滤器
9. Routingmesh service communication between clusters
How did I lose control of the team?
The most hard core of the whole network explains the computer startup process
If you want to forget the WiFi network you used to connect to your Mac, try this!
[note] error while loading pyv8 binary: exit code 1 solution
Vue: Axios uses this pointer
On hiz buffer
Business facade and business rule
当 TiDB 与 Flink 相结合:高效、易用的实时数仓
Kubernetes (1): introduction to kubernetes
分享几个我日常使用的VS Code插件
The JS solution cannot be executed after Ajax loads HTML
Blazor 準備好為企業服務了嗎?
Ac86u KX Online