Generating and validating 6 symbols codes
- How to use?
Just import this file to your project and then call function genCode(key) or function valCode(code, key) from class tfcg In args include your key
- How it works?
By gmt time, gmt date and secret key that formatting and hashing by md5 and then returning 6 first symbols in uppercase