Will return the encrypted string of the given password. This is a one-way encryption of a given user password (eg. for .htaccess based Web-Site protection). This encryption is non-reversible, hence you can't get back the original password from the encrypted one.
SYNTAX:
epass$ = EncryptPassword$ (pass$, salt$)
INPUTS:
pass$ (STRING)
- Any password as literal or variable. An empty password is possible but not recommended.
salt$ (STRING)
- An 1-2 characters long salt string, which randomizes the encryption (for Web-Passwords this string must match the string prescribed by the webspace provider for that particular Web-Site (you have to ask for it, if required)). An empty salt$ will lead to an empty result, hence salt$ is mandatory for encryption.
RESULT:
epass$ (STRING)
- The encrypted password for .htaccess based Web-Site protection.