aes-128算法加密

The Crypt-Arithmetic problem in Artificial Intelligence is a type of encryption problem in which the written message in an alphabetical form which is easily readable and understandable is converted into a numeric form which is neither easily readable nor understandable. In simpler words, the crypt-arithmetic problem deals with the converting of the message from the readable plain text to the non-readable ciphertext. The constraints which this problem follows during the conversion is as follows:

人工智能中的加密算法问题是一种加密问题,其中,以易于阅读和理解的字母形式的书面消息被转换为既不易于阅读也不被理解的数字形式。 用简单的话来说,密码算法问题就是将消息从可读的纯文本转换为不可读的密文。 在转换过程中,此问题遵循的约束如下:

  1. A number 0-9 is assigned to a particular alphabet.

    数字0-9分配给特定的字母。

  2. Each different alphabet has a unique number.

    每个不同的字母都有一个唯一的数字。

  3. All the same, alphabets have the same numbers.

    字母相同,数字相同。

  4. The numbers should satisfy all the operations that any normal number does.

    数字应满足任何普通数字所做的所有操作。

Let us take an example of the message: SEND MORE MONEY.

让我们以消息为例:发送更多的钱。

Here, to convert it into numeric form, we first split each word separately and represent it as follows:

在这里,为了将其转换为数字形式,我们首先将每个单词分开分割,并表示如下:

    S E N D
M O R E
-------------
M O N E Y

These alphabets then are replaced by numbers such that all the constraints are satisfied. So initially we have all blank spaces.

然后将这些字母替换为数字,以便满足所有约束条件。 所以最初我们有所有空格。

These alphabets then are replaced by numbers such that all the constraints are satisfied. So initially we have all blank spaces.

然后将这些字母替换为数字,以便满足所有约束条件。 所以最初我们有所有空格。

We first look for the MSB in the last word which is 'M' in the word 'MONEY' here. It is the letter which is generated by carrying. So, carry generated can be only one. SO, we have M=1.

我们首先在最后一个单词中寻找MSB,在这里,单词“ MONEY”中的单词为“ M” 。 这是随身携带产生的字母。 因此,进位生成只能是一个。 因此,我们有M = 1

Now, we have S+M=O in the second column from the left side. Here M=1. Therefore, we have, S+1=O. So, we need a number for S such that it generates a carry when added with 1. And such a number is 9. Therefore, we have S=9 and O=0.

现在,在左侧第二列中有S + M = O。 这里M = 1 。 因此,我们有S + 1 = O。 因此,我们需要一个S的数字,使其与1相加时会产生一个进位。 这样的数字是9 。 因此,我们有S = 9O = 0

Now, in the next column from the same side we have E+O=N. Here we have O=0. Which means E+0=N which is not possible. This means a carry was generated by the lower place digits. So we have:

现在,在同一侧的下一列中,我们有E + O = N。 这里我们有O = 0 。 这意味着E + 0 = N是不可能的。 这意味着低位数字产生了进位。 因此,我们有:

1+E=N ----------(i)

1 + E = N ----------(i)

Next alphabets that we have are N+R=E -------(ii)

我们接下来的字母是N + R = E -------(ii)

So, for satisfying both equations (i) and (ii), we get E=5 and N=6.

因此,为了满足方程式(i)和(ii) ,我们得到E = 5和N = 6

Now, R should be 9, but 9 is already assigned to S, So, R=8 and we have 1 as a carry which is generated from the lower place digits.

现在, R应该是9 ,但是9已经分配给S ,因此, R = 8,并且我们有一个1的进位,这是从低位数字生成的。

Now, we have D+5=Y and this should generate a carry. Therefore, D should be greater than 4. As 5, 6, 8 and 9 are already assigned, we have D=7 and therefore Y=2.

现在,我们有D + 5 = Y ,这应该产生一个进位。 因此, D应该大于4 。 由于已经分配了5、6、89 ,因此D = 7 ,因此Y = 2

Therefore, the solution to the given Crypt-Arithmetic problem is:

因此, 给定的加密算法问题解决方案是

S=9; E=5; N=6; D=7; M=1; O=0; R=8; Y=2

S = 9; E = 5; N = 6; D = 7; M = 1; O = 0; R = 8; Y = 2

Which can be shown in layout form as:

可以在布局形式中显示为:

      9 5 6 71 0 8 5-------------1 0 6 5 2--------------

翻译自: https://www.includehelp.com/ml-ai/crypt-arithmetic-problem-a-type-of-constraint-satisfactory-problem-in-artificial-intelligence.aspx

aes-128算法加密

aes-128算法加密_加密算法问题-人工智能中的一种约束满意问题相关推荐

  1. php aes 128位加密,php实现AES 128位加密的相关操作技巧分享

    php实现AES 128位加密的相关操作技巧是什么?这篇文章主要介绍了PHP实现的AES 128位加密算法,结合实例形式分析了AES 128位加密的相关概念.原理及php实现AES 128位加密的相关 ...

  2. Go Nodejs Java Aes 128 ECB加密解密结果保持一致

    在多语言的生产环境下,常常是由一种语言进行加密而由另一种语言来进行解密,因此有必要保持各种语言之间加密解密算法的一致性.下面列出了Go,Nodejs,Java 的 Aes-128-Ecb的加密解密算法 ...

  3. ai人工智能在手机的应用_常识在人工智能中仍然不常见

    ai人工智能在手机的应用 Tassilo Klein and Moin Nabi (SAP AI Research) Tassilo Klein和Moin Nabi(SAP AI研究) Deep le ...

  4. python 人工智能编程_最适合人工智能开发的5种编程语言

    自从去年,AlphaGo打遍天下棋手无对手,人工智能的风头就一直无人能及.在刚刚过去的IT领袖峰会上,BAT三位大佬都看好人工智能的未来发展.今年年初,百度就做了一个大动作,在医疗方面押宝人工智能,所 ...

  5. java aes128加密解密_java AES 128 位加密解密算法

    最近在做app后台的服务器,使用到AES加密解密算法,无奈网上的都不符合要求,于是自己借鉴着写了一个AES加密解密工具. 密钥长度问题 默认 Java 中仅支持 128 位密钥,当使用 256 位密钥 ...

  6. android 中如何用aes算法加密解密zip文件,android中AES加解密的使用方法

    今天在android项目中使用AES对数据进行加解密,遇到了很多问题,网上也找了很多资料,也不行.不过最后还是让我给搞出来了,这里把这个记录下来,不要让别人走我的弯路,因为网上绝大多数的例子都是行不通 ...

  7. 使用openssl进行AES 128 CTR 加密、解密

    参考文章 https://blog.csdn.net/yasi_xi/article/details/13997337 对称加密如非对称加密 AES128-CTR方式,属于对称加密的一种. 这里有一篇 ...

  8. aes离线解密工具_如何在Python中解密OpenSSL AES加密文件?

    OpenSSL为AES加密提供了一种流行的(但不安全 - 见下文!)命令行界面: openssl aes-256-cbc -salt -in filename -out filename.enc Py ...

  9. 神码ai人工智能写作机器人_机器学习和人工智能中的多样性推荐系统

    神码ai人工智能写作机器人 人工智能 , 机器学习 (Artificial Intelligence, Machine Learning) 每天,您都会受到机器学习和AI推荐算法的影响. (Every ...

最新文章

  1. CentOS 6和CentOS 7管理系统服务的区别
  2. 【Android 高性能音频】AAudio 音频流 PCM 采样 的 采样 缓冲 播放 的 连续机制 ( 数据回调机制 | 数据回调函数指针 | 实现数据回调函数 | 设置数据回调函数 )
  3. source insight(SI)C/C++符号标记含义
  4. c语言程序设计开卷考试b卷,C语言程序设计(B)试卷_杨崇联(A1).doc
  5. 新增数据时遇到特殊字符
  6. 表格合并行_合并行table表格
  7. android上传文件用哪个布局,每周总结20130821——android控件的尺寸、http文件上传...
  8. Sql Server 2014 双节点群集无法切到其中一节点解决
  9. python语法基础知识第四关第二题_【python基础语法】第4天作业练习题
  10. (十五)洞悉linux下的Netfilteriptables:开发自己的hook函数【实战】
  11. 【图像检索】基于matlab GUI KNN图像检索【含Matlab源码 267期】
  12. ZCuPb10Sn10铸造锡青铜板ZCuPb10Sn10力学性能
  13. 台式机和计算机有什么区别,笔记本电脑和台式电脑有什么区别
  14. macos 安装cms php,苹果cms安装及配置详细教程
  15. 洛谷 P1194 买礼物 (题解+代码)
  16. 欧几里得定理(nyoj775)
  17. python组件化软件策划_Vue组件化开发
  18. java 类的方法设计_设计问题:Java类与单方法OK?
  19. 如何监测大数据舆情信息动态的方法技巧
  20. 1年工作经验跳槽项目总监,看到他的数据可视化报表,我沉默了

热门文章

  1. java中反射机制通过字节码文件对象获取字段和函数的方法
  2. Uvaoj 10048 - Audiophobia(Floyd算法变形)
  3. python如何删除对象属性_如何优雅的删除对象中的指定属性?
  4. ubuntu安装zsh、oh-my-zsh及常用配置
  5. feko软件_计算电磁学各种方法和电磁仿真软件简述
  6. android 开机动画 渐变,[Parallax Animation]实现知乎 Android 客户端启动页视差滚动效果...
  7. 联想服务器重装2008,联想ThinkSystem机器安装2008R2详细教程
  8. 获取html内标题,通过html敏捷包获取标题标签
  9. Job for smbd.service failed because the control process exited with error code. See “systemctl statu
  10. DOCKERFILE参数注解