VMware Cloud Community
CristiCalin
Contributor
Contributor
Jump to solution

ideas on how to generate a random password in vCO

I need to generate a random password in a vCO workflow.

I'm thinking of calling an ssh on a host and run pwgen there but it seems like a dirty way of doing it.

Is there any simpler method of generating random stuff in vCO ?

Thanks,

Cristian

Reply
0 Kudos
1 Solution

Accepted Solutions
ChristianWehner
VMware Employee
VMware Employee
Jump to solution

Hi Cristian,

cause you can use javascript within vCO you can use something like this:

http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript

Regards,

Chris

View solution in original post

Reply
0 Kudos
2 Replies
ChristianWehner
VMware Employee
VMware Employee
Jump to solution

Hi Cristian,

cause you can use javascript within vCO you can use something like this:

http://stackoverflow.com/questions/1349404/generate-a-string-of-5-random-characters-in-javascript

Regards,

Chris

Reply
0 Kudos
CristiCalin
Contributor
Contributor
Jump to solution

Thanks, it works beautifully.

Reply
0 Kudos