Click here to Skip to main content
15,921,203 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Can anyone help?

how to generate security key as 4 digits?
Posted
Comments
Sergey Alexandrovich Kryukov 22-Dec-11 0:38am    
Why do you think a security key of 4 digits could be enough? Even in hexadecimal digits, this is only a matter of trying no more than 65536 times... (Or gosh, our vulnerable, vulnerable checking accounts :-(
In security, people usually consider 1-2 Kilobytes keys as absolute minimum... How about that?
--SA
sathiyak 22-Dec-11 0:42am    
as my code,it creates only 2 or 3 digits....but i want more...so can you tell how to get maximum numbers...like 5 or 6 digits or watever maybe..
Sergey Alexandrovich Kryukov 22-Dec-11 1:02am    
Not clear...
--SA
sathiyak 22-Dec-11 1:21am    
tks for asking...got it...

1 solution

use this
Dim rand As New Random
       la.Text = (Mid(rand.Next, 1, 4))
 
Share this answer
 
v2
Comments
sathiyak 23-Dec-11 1:09am    
c# coding...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900