https://github.com/r0mb0/timed_password_generator_classic_asp
Class to retrieve timed generate passwords.
https://github.com/r0mb0/timed_password_generator_classic_asp
asp-classic class classic-asp italian-developers library password-generator r0mb0 security security-tools timed timed-password-generator web web-security
Last synced: 3 months ago
JSON representation
Class to retrieve timed generate passwords.
- Host: GitHub
- URL: https://github.com/r0mb0/timed_password_generator_classic_asp
- Owner: R0mb0
- License: mit
- Created: 2024-12-06T08:45:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-30T14:41:20.000Z (about 1 year ago)
- Last Synced: 2026-01-26T07:30:15.714Z (4 months ago)
- Topics: asp-classic, class, classic-asp, italian-developers, library, password-generator, r0mb0, security, security-tools, timed, timed-password-generator, web, web-security
- Language: Classic ASP
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# Timed password generator in Classic ASP
[](https://app.codacy.com/gh/R0mb0/Timed_password_generator_classic_asp/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://github.com/R0mb0/Timed_password_generator_classic_asp)
[](https://github.com/R0mb0/Timed_password_generator_classic_asp)
[](https://opensource.org/license/mit)
[](http://paypal.me/R0mb0)
## Class Logic
```mermaid
flowchart LR
A[/Timed passowrd generator/] --> B{If}
B --> |Password and timestamp file is present| C[Check date]
B --> |Password and timestamp file is not present| D[Generate a file with a new password and the timestamp]
C --> E{If}
E --> |The date is older than one day| G[Genereate a new password and update the file]
E --> |The date is not older than one day| F[/Return password/]
D --> F
G --> F
```
> "one day" is an example of time, in the class this parameter in editable
## `timed_password_generator.class.asp`'s avaible function
- Retrieve the password -> `Public Function Get_password()`
## How to use
> From `timed_password_generator.class.asp`
1. Set class parameters
```asp
path_of_file = "" '<-- Set param
update_time = 1 '<-- Set param
'Set one of this params
'time_check = "yyyy" '<- Year
'time_check = "q" '<- Quarter
'time_check = "m" '<- Month
'time_check = "y" '<- Day of year
time_check = "d" '<- Day
'time_check = "w" '<- Weekday
'time_check = "ww" '<- Week of year
'time_check = "h" '<- Hour
'time_check = "n" '<- Minute
'time_check = "s" '<- Second
```
> From `Test.asp`
2. Initialize the class
```asp
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim my_psw
Set my_psw = new timed_password_generator
```
3. Retrieve the password
```asp
Response.write("
Password of the day:
")
Response.write(my_psw.Get_password())
%>
```
### A part of this project was inspired by [Salman's Web Development Blog](https://salman-w.blogspot.com/2009/06/generate-random-strings-using.html)