playMaker

Author Topic: Simple Hashing (MD5 or SH1)  (Read 1033 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
    • View Profile
Simple Hashing (MD5 or SH1)
« on: June 02, 2015, 06:03:08 PM »
MD5 or SH1 a string with optional (but highly recommended!!) password.

get it from Ecosystem or copy/paste from https://snipt.net/dudebxl/

How could would I use it?
Use it to compare it to a new hash. If they do not match then you know that the data has been tampered.
-- example:
Hash your string (normal string or your encrypted string)
Save it in playerprefs or whatever other tool you are using as a new key + original string.
Get data from playerprefs - original data saved(the original string) + hash data.
Hash the original data and compare the hash result with your saved hash. If they match all is well if not then you have an 'error'.

This actions allows you full control. If you need pre-made actions then Playerprefs with hash actions are available in this forum for int / float / string.  :)

« Last Edit: June 17, 2015, 07:23:12 AM by dudebxl »