Posted 10 July 2015 - 11:14 AM
Basicly I found a nifty way of storing usernames and passwords in tables, this in turn allows you to "connect" usernames and passwords, if you know what I mean. Basicly If you store a username as the key in an array and the password as the value of the key.
Just thought it would be nice to share that. :)/>
Pros:
- You can check if usernames exist (By seing if the key returns nil or not)
- It's easy to add, change or delete usernames and passwords ( Add: exampleTable["username"] = "password", Change: exampleTable["username"] = "newPassword", Delete: exampleTable["username"] = nil,
Please tell me if this is a good idea, and leave your thoughts below. If you want, I can post a simple password program I wrote.
Thanks! :)/>
Just thought it would be nice to share that. :)/>
Pros:
- You can check if usernames exist (By seing if the key returns nil or not)
- It's easy to add, change or delete usernames and passwords ( Add: exampleTable["username"] = "password", Change: exampleTable["username"] = "newPassword", Delete: exampleTable["username"] = nil,
Please tell me if this is a good idea, and leave your thoughts below. If you want, I can post a simple password program I wrote.
Thanks! :)/>