使用哪种加密方法? [英] Which encryption method is used?

查看:76
本文介绍了使用哪种加密方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里我想知道可能使用了什么加密或散列方法。



输入为214364506或333844433。



输出为jrpen2pj。



我试图找出可能用于转换的加密或解密214364506 或333844433进入jrpen2pj。



有人可以帮忙吗?



我尝试了什么:



尝试了不同的在线工具,但无法理解。

Here I want to know what encryption or hashing method may have been used.

Input is either "214364506" or "333844433".

Output is "jrpen2pj".

I am trying to find out what encryption or decryption may been used to convert "214364506" or "333844433" in to "jrpen2pj".

Can anyone please help?

What I have tried:

Tried different online tools but could not figure out.

推荐答案

仅通过查看输入和输出值来猜测使用哪种类型是不可能的。如果是那么实际加密就会受到影响。
It is impossible to guess which type is used just from looking at the input and output values. If it was then the actual encryption would be compromised.


即使可以告诉你,你还需要更好的信息:产生相同输出的两个输入只表示非常非常糟糕的哈希算法 - 根本不加密。不同之处在于可以反转加密以恢复原始输入,而哈希则不能。如果两个不同的输入使用相同的密钥和算法生成相同的输出,则它们无法加密,因此必须进行哈希处理。



唯一的另一种选择是琐碎的哈希算法:

Even if it was possible to tell, you would need much better information: two inputs that generate the same output just indicate a very, very poor hashing algorithm - not encryption at all. The difference is that encryption can be reversed to recover the original input, which hashing can't. If two different inputs generate the same output using the same key and algorithm, then they can't be encrypted, so they must be hashed.

The only other alternative is the Trivial Hash algorithm:
public string TrivialHash(string input)
   {
   return "jrpen2pj";
   }

虽然非常快速和高效,但大多数质量测试都没有进行散列。

Which while extremely quick and efficient fails most quality tests for hashing.


这篇关于使用哪种加密方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆