Generate uuid based on some value and retrive c# -
i need generate uuid based on (userid+time+ip) @ client side, , retrive details uuid (which user passes me through phone).
what need in detail user,time , ip should encoded in uuid such way uuid self not reveal details after processing should able details.
how encode values in uuid , retrive them ?
suggested answer:(by vivek nuna)
this code works fine generating uuid , how retrive userid,time , ip uuid ?
string input = "userid"+"time"+"ip"; using (md5 sha256 = md5.create()) { byte[] hash = sha256.computehash(encoding.default.getbytes(input)); guid result = new guid(hash); }
Comments
Post a Comment