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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -