How to design a sequential hash-like function

后端 未结 6 453
谎友^
谎友^ 2020-12-14 04:57

I want to develop something similar to jsfiddle in where the user can input some data and then \"save\" it and get a unique random looking url that loads that data.

6条回答
  •  没有蜡笔的小新
    2020-12-14 05:18

    In my opinion if you also keeping the save time of entry on server, you can generate a hash function. hash = func(id, time) but with only hash = func(id) gonna be to easy to resolve

提交回复
热议问题