.net - It is possible to code this on PHP? -
i coded vb.net application, security use hwid security method...
vb.net code generate unique key is:
dim hwid string = system.security.principal.windowsidentity.getcurrent.user.value
it return unique key every pc this
s-1-2324-34242fdf-sdwq3q-q3wr4cwrwce1321sxs32
currently learning & developing php scripts...
i want know possible generate same unique key using php???
let's break down.
system.security.principal.windowsidentity.getcurrent()
is method returns current user.
.user.value
is calling:
.user.tostring()
the method actually:
system.security.principal.windowsidentity.getcurrent().user.tostring()
this user's security identifier (sid).
running wmic useraccount name,sid
returns sids found on machine.
now, mean php? since php ran on server only, doubt number change based on visitor visits. using number in php pointless, same.
a better approach generating random id uniqid
.
check out this information on how sid derived registry.
Comments
Post a Comment