Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Password Generator

John Henrikson
Kilo Contributor

Hey,

I basically want some functionality that creates a random password of 8 characters usings a-z,A-Z, and 0-9. I was thinking of just having a UI page with a button and a text box with the output. I only need something as simple as that, unfortunately I am awful at HTML and Jelly so any help would be appreciated.

Note: we are on Geneva and also don't have the plugin for Ouath security or any of those, so we cannot use that out-of-box functionality.

Thanks in advance...

1 ACCEPTED SOLUTION

Paul Curwen
Giga Sage

Hi John,



This entry available on ServiceNow Share should do what you are wanting with minimal effort:



ServiceNow Share



Regards,



Paul.


***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

View solution in original post

3 REPLIES 3

Paul Curwen
Giga Sage

Hi John,



This entry available on ServiceNow Share should do what you are wanting with minimal effort:



ServiceNow Share



Regards,



Paul.


***If Correct/Helpful please take time mark as Correct/Helpful. It is much appreciated.***

Regards

Paul

Thanks Paul,


I just registered for Snow Share to get it, but I unfortunately don't know how long it will take, is there any way of getting the information faster? sorry about this


Try this: Create a button to produce a random number.


Or this: Generate random string/characters in JavaScript - Stack Overflow  


Or this UI action:


Name: Random


Client: true


onClick: generateNumber()


Script:


function generateNumber() {


      var text = "";


      var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";


      for( var i=0; i < 15; i++ ) //will generate 15 characters pasword


              text += possible.charAt(Math.floor(Math.random() * possible.length));


      alert( text);


}



harel