Lasso Soft Inc. > Home


AuthorJonathan Guthrie
LicensePublic Domain
Posted18 Sep 2012
Updated18 Sep 2012
More by this author...


Generates a random password of a given size.

Sample Usage

local(newPassword = xs_genPwd(20))

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

// ==================================
	Creates a random password
// ==================================

define xs_genPwd(size::integer=8) => {
	local(pMap = array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','1','2','3','4','5','6','7','8','9','0'))
	local(thisPwd = string)
	loop(#size) => {
	return #thisPwd

Related Tags


No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft