Custom hash tag

Discussion in 'Plugin Development' started by HungerCraftNL, Apr 29, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    HungerCraftNL

    Hi,

    I'm trying to create a custom hash tag, something like (example, this will be in a configuration file):
    Code:
    <%hash=MD5%>Pass<%endHash%><%hash=MD4%>word<%endHash%>
    
    I know how to hash strings, that's not the problem.

    But I have no clue where to start, maybe can you guys help me out?

    Thank you
     
  2. Offline

    mythbusterma

  3. Offline

    HungerCraftNL

    @mythbusterma it's very hard to explain, I want to create a tag to put around passwords so you can make your own hash (combination). I know how to hash, but I don't know how to create these tags, I started with trying splits / StringBuilder but that won't work with more hash tags.

    As example:
    Code:
    <%hash=md5%><%hash=SHA-256%>$password<%endHash%><%endHash%>
    <hash=md5><hash=SHA-256>$password</hash></hash>
    Bold: This is the 'tag', so start of the hashing

    <hash=md5><hash=SHA-256>$password</hash></hash>
    Bold: End fo the 'tag', so end of the hasing

    I hope it's more clear now.
     
    Last edited: Apr 30, 2015
  4. Offline

    mythbusterma

    @HungerCraftNL

    What's wrong with storing it in salted SHA-256 and calling it good? Doing anything more complicated is a waste of time and resources.
     
Thread Status:
Not open for further replies.

Share This Page