.net - Write Date only to Registry vb net -



.net - Write Date only to Registry vb net -

with code i'm writing current time , date registry.

what if want store date ? tried date.now instead of now .

private function handleregistry() boolean dim firstrundate date firstrundate = my.computer.registry.getvalue("hkey_local_machine\software\myprog", "firstrun", nothing) if firstrundate = nil firstrundate = my.computer.registry.setvalue("hkey_local_machine\software\myprog", "firstrun", firstrundate) elseif (now - firstrundate).days > 15 homecoming false end if homecoming true end function

also if looking hash in vb.net . there says id can used md5 there stronger protection because first time seek unhash md5 ? custom made has take asci value of each letter add together number "3" , read asci value 1 time again ? understand me ?

now , datetime.now same thing. want today or datetime.today

these give date , time as-of midnight if don't want time, can format using this:

datetime.today.tostring("d")

as encryption, there lot of options out there long pick 128bit or improve fine. assume storing date type of timed trial? if so, can circumvented don't set much effort it.

.net vb.net registry

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -