password | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | stack | ||||||
Summary | Specifies a password that the user must enter before making changes to the stack. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: string Property: password, passKey Function: stacks, mcEncrypt Glossary: object, property, stack file, password, development environment, custom property, decrypt, Application Browser, Standalone Application Settings, script, encrypt, handler Object: button, field, stack | ||||||
Description | Use the password property to encrypt a stack's contents, allowing access only from within the application. By default, the password property of newly created stacks is set to empty. If the password property of a stack is not empty, all the text in the stack is encrypted (so that it cannot be read in another program, such as a text editor). Scripts, custom properties, text in fields or buttons, and object names in a password-protected stack are all encrypted. However, you can still open the stack, see the contents, and get object properties. The password property applies to a stack, not to the entire stack file, so it is possible to have a stack file that contains both password-protected and unprotected stacks. After setting the password the password protection does not take effect until the stack has been removed from memory and reloaded. If the password is set, the stack's Scripts cannot be modified, its password cannot be changed, and objects cannot be copied. These restrictions stop operating temporarily for the current session when the stack's passKey property is set to the correct password by a handler. To permanently remove the password restrictions, set the stack's password to empty. Setting the password to empty removes the password from the stack and makes it fully accessible to any user.
The password is encrypted when stored in the stack to prevent cracking the password protection. If you get the password of a stack, the property reports true if the stack has a password set and false otherwise.
|