https://github.com/r0mb0/url_crypted_parameters_classic_asp
A class for passing and retrieving parameters from URL
https://github.com/r0mb0/url_crypted_parameters_classic_asp
asp-classic classic-asp crypted crypted-params crypted-url crypto italian-developers params r0mb0 security url url-crypted-params web web-security
Last synced: about 2 months ago
JSON representation
A class for passing and retrieving parameters from URL
- Host: GitHub
- URL: https://github.com/r0mb0/url_crypted_parameters_classic_asp
- Owner: R0mb0
- License: mit
- Created: 2024-11-20T10:34:46.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-03-11T19:52:20.000Z (3 months ago)
- Last Synced: 2025-03-28T09:55:27.356Z (2 months ago)
- Topics: asp-classic, classic-asp, crypted, crypted-params, crypted-url, crypto, italian-developers, params, r0mb0, security, url, url-crypted-params, web, web-security
- Language: Classic ASP
- Homepage:
- Size: 49.8 KB
- Stars: 1
- 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
# Url crypted parameters in Classic asp
[](https://app.codacy.com/gh/R0mb0/Url_crypted_parameters_classic_asp/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://github.com/R0mb0/Url_crypted_parameters_classic_asp)
[](https://github.com/R0mb0/Url_crypted_parameters_classic_asp)
[](https://opensource.org/license/mit)[](http://paypal.me/R0mb0)
## ⚠️ Dependencies ⚠️
This class needs: `rijndael.asp` and `dictionary.class.asp` to work correctly, the two files must be in the same dir of the class.
## `url_crypted_parameters.class.asp`'s avaible functions
- Set the password to use for crypting -> `Public Function set_password(ByVal password)`
- Get the setted password -> `Public Function get_password()`
- Check if password is setted -> `Public Function is_password_setted()`
- Add parameter to crypt -> `Public Function add_paramater(ByVal id, ByVal value)`
- Change parameter value from id -> `Public Function change_parameter(ByVal id, ByVal value)`
- Remove parameters -> `Public Function remove_paramater_by_id(ByVal id)`
- Get parameter value from id -> `Public Function get_parameter_value(ByVal id)`
- Write all parameters inserted -> `Public Function write_parameters()`
- Get actual page URL -> `Public Function get_current_url()`
- Add crypted parameters in URl -> `Public Function set_parameters_to_url(ByVal url)`
- Redirect a URL to new tab -> `Public Function redirect(ByVal url)`
- Decrypt actual URL parameters -> `Public Function decrypt_actual_params()`
- Decrypt URL parameters -> `Public Function decrypt_url_params(ByVal url)`## How to use
### Page where crypt params
> From `Test.asp`
1. Initialize the class
```asp
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim url
Set url = new url_cryptedurl.set_password("Banana")
```
2. Add params to crypt in URL
```asp
url.add_paramater "id", 1328
url.add_paramater "password","blablabla"
```
3. Generate URL with crypted params
```asp
Dim link
link = url.set_parameters_to_url("test2.asp")
%>
```### Page where decrypt params
> From `Test2.asp`
1. Initialize the class
```asp
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim url
Set url = new url_cryptedurl.set_password("Banana")
```
2. Decrypt page params
```asp
url.decrypt_actual_params()
```
3. Access information
```asp
Response.Write("Id value: " & url.get_parameter_value("id") & "
")
<%
```