如何创建一个哈希函数来屏蔽机密信息? [英] How to create a hash function to mask confidential informations?

查看:209
本文介绍了如何创建一个哈希函数来屏蔽机密信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在目前的项目中,我想创建自己的散列函数,但到目前为止,散列原理没有太多的理论背景。



我会非常感谢如果你有任何人可以提出关于哈希,加密和哈希函数的实际实现的任何有用的资源。



谢谢!



PS由于散列块信息在这种情况下是较大的研究项目的一部分我想要自己创建一个哈希函数,这种方式学习的原则,而不是使用现有的库。

解决方案


  1. 不要。现有的加密和散列算法(如上面的注释中所指出的,它们与彼此没有什么关系)已经由专家设计并广泛地同行评审。你从头写的任何东西都会吸引人的比较。保证。真。你唯一能获得的是错误的安全感 - 你的算法不会被同行评审,所以你会认为它比实际更安全。


  2. 但是如果你想更多地了解这个理论(并感谢你为什么不应该自己做),请阅读



    先刷一下你的数学。


    In the current project I would like to create my own hash function but so far haven't gained much theoretical background on hashing principle.

    I would be very thankful if anyone of you could suggest any useful resource about the theory of hashing, cryptography and practical implementations of hash functions.

    Thank you!

    P.S. As hashing blocks of informations in this case is a part of larger research project I would like to create a hash function on my own and this way learn the principle rather than use the existing libraries. The informations I am working on will stay in house so there is no need to worry about the possible attacks.

    解决方案

    1. Don't. Existing encryption and hashing algorithms (as pointed out in the comments above, they have little to do with each other) have been designed by experts and extensively peer-reviewed. Anything you write from scratch will suck in comparison. Guaranteed. Really. The only thing you'll gain is a false sense of security -- your algorithm won't be peer-reviewed, so you'll think it's more secure than it actually is.

    2. But if you do want to know more about the theory (and gain an appreciation for why you shouldn't do it yourself), read "Applied Cryptography" by Bruce Schneier. You won't find a better resource.

    Brush up on your math first.

    这篇关于如何创建一个哈希函数来屏蔽机密信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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