Skip to content

About

Class to retrieve timed generate passwords.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Timed password generator in Classic ASP

Codacy Badge

Maintenance Open Source Love svg3 MIT

Donate


Class Logic

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
Loading

"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
         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

  1. Initialize the class
     <%@LANGUAGE="VBSCRIPT"%>
     <!--#include file="timed_password_generator.class.asp"-->
     <%
         Dim my_psw
         Set my_psw = new timed_password_generator
  2. Retrieve the password
         Response.write("<h1> Password of the day: </h1><br>")
         Response.write(my_psw.Get_password())
     %> 

A part of this project was inspired by Salman's Web Development Blog

Not made by AI

About

Class to retrieve timed generate passwords.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages