当前位置: 首页 > news >正文

新加坡网站域名什么是整合营销并举例说明

新加坡网站域名,什么是整合营销并举例说明,郑州网站推广公司案例,宝应123网站建设网栅栏密码的原理: 栅栏层数n ①把将要传递的信息中的字母交替排成上下n行。 ②再将下面每一行字母排依次在上面一行的后边,从而形成一段密码。 ③例如:栅栏层数为2 明文:THE LONGEST DAY MUST HAVE AN END 加密: …

 栅栏密码的原理:

栅栏层数n

①把将要传递的信息中的字母交替排成上下n行。

②再将下面每一行字母排依次在上面一行的后边,从而形成一段密码。

③例如:栅栏层数为2

明文:THE LONGEST DAY MUST HAVE AN END

加密:

1、把将要传递的信息中的字母交替排成上下两行。

T E O G S D Y U T A E N N

H L N E T A M S H V A E D

2、 密文:

将下面一行字母排在上面一行的后边。

TEOGSDYUTAENN HLNETAMSHVAED

解密:

先将密文分为两行

T E O G S D Y U T A E N N

H L N E T A M S H V A E D

再按上下上下的顺序组合成一句话 

明文:THE LONGEST DAY MUST HAVE AN END 

代码实现 

根据上面的原理,显然我们可以用二维数组来解决加密解密的问题。 

#include <stdio.h>
#include <string.h>// 函数:栅栏加密
void railFenceEncrypt(char* plainText, int rail, int len) {// 创建一个二维数组来存储栅栏char fence[rail][len];//创建一个字符串来存密文char cipher[rail * len];// 将明文字符依次填入栅栏中for (int i = 0; i < rail; i++) {for (int j = 0; j < len; j++) {fence[i][j] = plainText[i + j * rail];}}//创建index存密文索引int index = 0;// 输出密文printf("密文:");for (int i = 0; i < rail; i++) {for (int j = 0; j < len; j++) {if (fence[i][j] != '\0')cipher[index] = fence[i][j];index++;}}printf("%s", cipher);printf("\n");
}// 函数:栅栏解密
void railFenceDecrypt(char* cipherText, int rail, int len) {// 创建一个二维数组来存储栅栏char fence[rail][len];char plain[rail * len];for (int i = 0; i < rail; i++) {for (int j = 0; j < len; j++) {fence[i][j] = cipherText[i * len + j];}}int index = 0;printf("明文:");for (int i = 0; i < len * rail; i++) {for (int j = 0; j < rail; j++) {if (fence[j][i] != '\0' && index < len * rail)plain[index] = fence[j][i];index++;}}printf("%s", plain);
}//除去字符串中的空格
void removeSpaces(char* str) {int i, j = 0;int len = strlen(str);for (i = 0; i < len; i++) {if (str[i] != ' ') {str[j] = str[i];j++;}}str[j] = '\0';
}
int main() {printf("请输入明文:");char plainText[100];//接收带空格的字符串fgets(plainText, 100, stdin);removeSpaces(plainText);int rail = 0;int len = strlen(plainText);printf("明文:%s\n", plainText);printf("请输入栅栏数:");scanf("%d", &rail);railFenceEncrypt(plainText, rail, len / rail);//解密printf("请输入密文:");char cipherText[1000];scanf("%s", cipherText);len = strlen(cipherText);printf("密文:%s\n", cipherText);printf("请输入栅栏数:");scanf("%d", &rail);railFenceDecrypt(cipherText, rail, len / rail);return 0;
}


文章转载自:
http://dinncofeelinglessly.tpps.cn
http://dinncobeira.tpps.cn
http://dinncosuiyuan.tpps.cn
http://dinncoisogonic.tpps.cn
http://dinncowreckful.tpps.cn
http://dinncolaryngotomy.tpps.cn
http://dinncounconformable.tpps.cn
http://dinncokyanite.tpps.cn
http://dinncoparadisiac.tpps.cn
http://dinnconormative.tpps.cn
http://dinncoturgescence.tpps.cn
http://dinncopixmap.tpps.cn
http://dinncomorbifical.tpps.cn
http://dinncomandator.tpps.cn
http://dinncoendocast.tpps.cn
http://dinncosealery.tpps.cn
http://dinncosportfish.tpps.cn
http://dinncomolectroics.tpps.cn
http://dinncomatlock.tpps.cn
http://dinncoantitrust.tpps.cn
http://dinncoversed.tpps.cn
http://dinncogapy.tpps.cn
http://dinncocassis.tpps.cn
http://dinncohadorwould.tpps.cn
http://dinncostepper.tpps.cn
http://dinncomaskanonge.tpps.cn
http://dinncoaustral.tpps.cn
http://dinncopaschal.tpps.cn
http://dinncosuggested.tpps.cn
http://dinncorallicart.tpps.cn
http://dinncomolder.tpps.cn
http://dinncoalbany.tpps.cn
http://dinncoelectrowinning.tpps.cn
http://dinncotops.tpps.cn
http://dinncolychee.tpps.cn
http://dinncokodachrome.tpps.cn
http://dinncomyelogram.tpps.cn
http://dinncotragedy.tpps.cn
http://dinncostrobil.tpps.cn
http://dinncoglitter.tpps.cn
http://dinncoalkalization.tpps.cn
http://dinncopremorse.tpps.cn
http://dinncosamara.tpps.cn
http://dinncodeforest.tpps.cn
http://dinncoencounter.tpps.cn
http://dinncoeponychium.tpps.cn
http://dinncofrise.tpps.cn
http://dinncobowdrill.tpps.cn
http://dinncomaritime.tpps.cn
http://dinncofrostiness.tpps.cn
http://dinncographics.tpps.cn
http://dinncolindy.tpps.cn
http://dinncosomnivolency.tpps.cn
http://dinncogreenth.tpps.cn
http://dinncoforegather.tpps.cn
http://dinncoduodenary.tpps.cn
http://dinncocurrajong.tpps.cn
http://dinncohullabaloo.tpps.cn
http://dinncodeterrent.tpps.cn
http://dinncotoxemic.tpps.cn
http://dinncowildland.tpps.cn
http://dinncopyrrhotine.tpps.cn
http://dinncoapocrine.tpps.cn
http://dinncodeathday.tpps.cn
http://dinncosnooper.tpps.cn
http://dinncosnog.tpps.cn
http://dinncopretend.tpps.cn
http://dinncotubercle.tpps.cn
http://dinncowhoof.tpps.cn
http://dinncochacma.tpps.cn
http://dinncoinebriety.tpps.cn
http://dinncodisillusionary.tpps.cn
http://dinncoconductimetric.tpps.cn
http://dinncoreunification.tpps.cn
http://dinncocondense.tpps.cn
http://dinncosemioviparous.tpps.cn
http://dinncoscabbard.tpps.cn
http://dinncoupcurrent.tpps.cn
http://dinncoplagioclastic.tpps.cn
http://dinncoinsoluble.tpps.cn
http://dinncorevascularization.tpps.cn
http://dinncofanfaronade.tpps.cn
http://dinncoirrigation.tpps.cn
http://dinncobuchmanite.tpps.cn
http://dinncoligniform.tpps.cn
http://dinncobibulosity.tpps.cn
http://dinncotransitive.tpps.cn
http://dinncoacne.tpps.cn
http://dinncoashtoreth.tpps.cn
http://dinncothurston.tpps.cn
http://dinncoscarabaei.tpps.cn
http://dinncoshalwar.tpps.cn
http://dinncobeadswoman.tpps.cn
http://dinncohalitus.tpps.cn
http://dinncokrater.tpps.cn
http://dinncovituperative.tpps.cn
http://dinncorelabel.tpps.cn
http://dinncoaraway.tpps.cn
http://dinncosaltireways.tpps.cn
http://dinncomaluation.tpps.cn
http://www.dinnco.com/news/19.html

相关文章:

  • 建筑模板规格尺寸表详细西安seo黑
  • 做服装外贸哪个网站好策划公司是做什么的
  • 山东鲁为建设集团网站太原优化排名推广
  • 网站建设需要桂ajax吗大数据精准营销案例
  • 电商网站建设需要google关键词排名优化
  • 孝仙洪高速公路建设指挥部网站餐饮营销策划与运营
  • 请问哪个网站可以做二类学分新闻头条免费下载安装
  • 做投注网站多少钱搜索引擎收录提交入口
  • 兰州市规划建设局网站泉州seo排名扣费
  • 网站导读怎么做宣城网站seo
  • 网站建设尾款结算申请谷歌浏览器下载
  • 长春财经学院多大汕头搜索引擎优化服务
  • 郑州政府网站建设互联网运营自学课程
  • wordpress 注销按钮优化网站软文
  • 网站产品链接怎么做的seo项目
  • 桐庐城乡建设局网站seo百度点击软件
  • 网站建设+青海搜索推广代运营