Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>genrandomNew to Visual Studio Code? Get it now.
genrandom

genrandom

espresso3389

|
1,604 installs
| (0) | Free
Generate Random Bytes
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

genrandom - Generate Random Bytes

This is a Visual Studio Code extension, which generates random bytes and insert them on the current caret positions. It can generate random character sequence in four forms:

Features

BASE64

It generates 48 (by default) byte random byte sequence encoded in BASE64 (results in 64-characters).

6LGCGiYWnqngAl5KslABc3Ki4sRQ/2BHDULglM74j3V15JADG8ivG1T+YapuZGGG

BASE64URL

It generates 48 (by default) byte random byte sequence encoded in BASE64URL (results in 64-characters).

OnpY/qT/Cj/10oV9nJS/ZUc8YkEvAgKVHnHd26G/Yfxw37QCQGd38gpqM/BEFMmk

Hexadecimally encoded (HEX) bytes

It generates 32 (by default) byte random byte sequence in hexadecimal form.

31920EE1AE9E574BA00D55AFEA02CF33AED6C10E9710BB26FD3AB90B80F6E748

Comma-Separated HEX bytes

It generates 32 (by default) byte random byte sequence, which is hexed and comma-separated.

91,14,5B,55,AB,A0,31,23,FD,3D,A8,FA,C6,14,62,42,F8,F5,78,04,2B,86,84,91,36,E6,C0,F1,E1,26,5E,1A

Random Character Sequence

It generates 32 (by default) random character sequence. It is useful for generating cryptographically strong passwords.

<iE/I+V@J>Oq0@Npzr\'fa:_d9-O&B[2

The characters used by the function can be customized. See genrandom.randomChars.

Random Sequence using Selected Characters

It generates 32 random character sequence using the selected characters. If you select 0123456789abcdef, it will generate something like 348cc07350cb47cbee7230492d0c0e20.

Configurations

genrandom.randomChars

Characters used to generate random character sequence.

By default, the extension uses the following characters:

~!@#$%^&*()_-+=[]\\|;:'\",.<>/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

genrandom.randomByteLengthBase64

The number of bytes to generate random byte sequence to be encoded by BASE64.

The default is 48.

Unlike genrandom.randomLength, it had better a multiple of 3 because BASE64 normally encodes 3 bytes into 4 chracters.

genrandom.randomLength

The number of characters to generate random sequence. The default is 32.

Marketplace URL

https://marketplace.visualstudio.com/items?itemName=espresso3389.genrandom

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft