Hashing Data in MATLAB
Ältere Kommentare anzeigen
Hello everyone,
I wanted to know if there is a possibility to hash any type of data through simulink without the need to use the Cryptography Toolbox in MATLAB.
I have attempted to use the MATLAB Function block in Simulink which seemed like a promising approach. However, I encountered a compatibility error
I am reaching out to this forum to seek guidance and suggestions on how I can successfully hash data in Simulink using other alternative approaches or workarounds, I would greatly appreciate your input.
Thank you in advance for your assistance.
6 Kommentare
Rik
am 11 Jul. 2023
What is your goal with the hash?
Z
am 11 Jul. 2023
Rik
am 11 Jul. 2023
In that case you might also be interested in my ComputeNonCryptHash function. It is not cryptographically secure, but if all you want is a pseudo-random string of hex numbers, you might want this.
The main reason I wrote this, is to have a way create a checksum on a very wide range of releases of Matlab, as well as GNU Octave.
Z
am 11 Jul. 2023
Walter Roberson
am 13 Jul. 2023
@Z flagged (their own) question with the words
Hashing laws in US
Z:
The USA has no laws preventing the discussion of hashing algorithms, or of posting hashing code. US laws specifically permit the use of hashing for authentication, for example.
The USA does have laws that restrict the discussion of encryption algorithms. The distinction between hashing and cryptography is not always clear, but generally speaking, it is cryptography when there is an intention to recover information. When the purpose of an algorithm is to validate that the contents of a message have not been altered, or to provide mapping from longer original data to slots ("hashing"), or to authenticate that the message is from the claimed sender, then none of those functions are (typically) considered encryption.
Is it possible to use "hashing" / "message digest" functions that are not controlled by US law, and end up with "encryption" functionality? Sort of; it is not "supposed to be" possible, but I read a concept paper in which someone proved that in theory you can use authentication processes to effectively carry information (encryption); the particular approach they outlined involved re-sending the data multiple times, so that particular approach was not "efficient", but it did demonstrate that you cannot create a clear boundary between hashing and "encryption".
Z
am 13 Jul. 2023
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulink Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!