I have been trying with this for days now. Please can anyone tell me if there is a reasonably easy-to-use SHA512 implementation out there (32 bit)?
I tried porting a JavaScript algorithm, but UnityScript is different enough that it became impractical. I have Unity iPhone advanced, so a C/ObjC/C++ plugin is acceptable. It’s just that all the functions that I have found so far are tangled up in a much bigger library or are for 64-bit architectures.
I am an experienced programmer, but this task just isn’t yielding… please can someone help? There have been a few mentions of security on the forum and I know there is the MD5 script but I think this might be useful to a few people.
Thanks very much
Ok I finally managed to get a hash result that matched from 2 different sources.
I used a C-based plugin. Source code from the following location (free to use under BSD license I think i.e. keep the stuff at the top of the file intact):
http://gladman.plushost.co.uk/oldsite/cryptography_technology/sha/index.php
Direct link to archive:
http://gladman.plushost.co.uk/oldsite/cryptography_technology/sha/sha2-07-01-07.zip
If anyone needs help integrating this code into their projects feel free to PM me.
This response may not be very useful as is… I will try to update this thread if I come up with something more usable (I started a port of a JS algorithm but abandoned it. Maybe someone else would like to finish it if I don’t have time…)
Looks like you can just use the SHA512Managed class and ComputeHash() from System.Security.Cryptography.
–Eric
Ah - I think a little reading around the wider scripting frameworks would be in order at this stage… I wish that had come up in one of my google searches.
Thanks, I’ll check that out! 