--- title: "CreatePassword" slug: "createpassword" updated: 2024-05-04T19:29:16Z published: 2024-05-04T19:29:16Z canonical: "help.mail-and-deploy.com/createpassword" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mail-and-deploy.com/llms.txt > Use this file to discover all available pages before exploring further. # CreatePassword ### General The *CreatePassword* function returns a [String](/release34/docs/string) that contains a random password with a given length. ### Syntax The syntax of the *CreatePassword* function is: CreatePassword Functin Syntax CreatePassword() ### Examples The following [Expression](/release34/docs/introduction-to-mail-and-deploy-expressions) returns a [String](/release34/docs/string) that contains a random password with 20 alphanumeric characters: CreatePassword Function Example CreatePassword(20)