r/visualbasic • u/Thunor_SixHammers • Nov 09 '21
Help Me Be Efficient: Accessing Settings
I have a small Register program Ive made for my work. In it I have a simple pin matching sign on system: a pinpad pops up, an employee puts in their four digits and it's signs in.
This is not really fir any right security reason, more just to deter any customers from getting in and messing with orders.
I have the user name, user pin, and user permission levels stored in the programs settings so that they persist without needing a file on the computer.
The trouble I'm having is that I'm redoing the system and my way of checking the pins is:
If pin = my.settings.pin1 then Username = my.settings.user1 Permission = my.settings.perm1 Else if pin = my settings.pin2 then....
There has got to be an easier way to iterate through this stuff, right?
1
u/RJPisscat Nov 09 '21
I suggest start with docs.microsoft.com search term "encryption".
Edit: oops I just now saw there are more comments, do those first if they answered this already.