不具有VBA或宏的基于Excel公式的SHA256/SHA512哈希函数 [英] Excel formula-based function for SHA256 / SHA512 hashing without VBA or macros
问题描述
这是2017年,如果安全性很重要,那么任何需要使用哈希的人都应避免使用诸如MD5之类的破碎"哈希.是否有人找到或创建了一种无需使用VBA或宏即可在Excel中执行更安全的SHA256或SHA512哈希的方法?
It's the year 2017 and anybody who needs to use hashes should avoid 'broken' ones such as MD5, if security is important. Has anybody found or created a way to do more secure SHA256 or SHA512 hashing in Excel, without using VBA or macros?
一个很典型的例子是在3½年前使用MD5进行的(如下面的SO所示: Excel中的MD5哈希函数而不使用VBA ).
A spectacular example of this being done before was over 3½ years ago with MD5 (as seen in this SO: MD5 Hash function in excel without using VBA).
避免使用VBA/宏的原因:与移动设备(如Excel for iOS)的兼容性.
Reason for avoiding VBA/Macros: Compatibility with mobile devices, such as Excel for iOS.
侧面注:原始的Stack Overflow帖子具有成功的答案,但链接无效,这是供参考的新链接:
Side Note: The original Stack Overflow post has a successful answer with a dead link, here is a new link for reference: https://tzamtzis.gr/2017/web-analytics/excel-function-md5-hashing-without-vba/
推荐答案
我有一个.限制为55个字符,并且更多设计用于教育目的(例如,如何查看SHA256在Excel中的工作方式....?).
I've got one. Limits to 55 characters and designed more for educational purposes (i.e. how to see how SHA256 works in Excel....?).
回顾...
- 没有VBA.
- 没有命名范围.
- 没有数组.
- 使用2007年及更高版本中提供的标准Excel功能.
- 格式为* .xlsx
或
这篇关于不具有VBA或宏的基于Excel公式的SHA256/SHA512哈希函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!