GenerateRandomString

Generates random string.

python · Common Scripts

Details

IDGenerateRandomString
Languagepython
From Version6.2.0
Docker Imagedemisto/python3:3.12.13.10404775

README

Generates a random string.

Script Data


Name Description
Script Type python
Tags -

Inputs


Argument Name Description
Length The length of the string. Maximum is 10,000.
Punctuation Whether the string will include punctuation.
Lowercase Whether the string will include letters.
Uppercase Whether uppercase should be included.
Digits Whether digits should be included.

Outputs


Path Description Type
RandomString The generated string. string
commonfields:
  id: GenerateRandomString
  version: -1
name: GenerateRandomString
comment: |-
  Generates random string.
script: ''
type: python
subtype: python3
tags: []
enabled: true
args:
- name: Length
  required: true
  description: Length of the string. Maximum is 10,000.
- name: Punctuation
  required: true
  auto: PREDEFINED
  predefined:
  - 'True'
  - 'False'
  description: If the string will include punctuation.
- name: Lowercase
  required: true
  auto: PREDEFINED
  predefined:
  - 'True'
  - 'False'
  description: If the string will include letters.
- name: Uppercase
  description: if uppercase should be included.
  required: true
  auto: PREDEFINED
  predefined:
  - 'True'
  - 'False'
- name: Digits
  required: true
  description: If digits should be included.
  auto: PREDEFINED
  predefined:
  - 'True'
  - 'False'
outputs:
- contextPath: RandomString
  description: The generated string.
  type: string
scripttarget: 0
tests:
- RandomStringGenerateTest
fromversion: 6.2.0
dockerimage: demisto/python3:3.12.13.10404775