How to set variable from input in batch [on hold]
up vote
-3
down vote
favorite
OK, so I am trying to create a batch file that can use an input, and use the letters in the input to randomize it.
For example, I would request a password, HELLO, and output randomized characters, 85bbe.
How would I change the Input to variables, aka the HELLO into "H""E""L""L""O"?
I already have the randomizing code built, but I just don't know how to change a word into individual letters set to variables.
The encryption code for now, is
set A=1
set B=2
set C=3
set D=4
set E=5
set F=6
set G=7
set H=8
set I=9
set J=0
set K=a
set L=b
set M=c
set N=d
set O=e
set P=f
set Q=g
set R=h
set S=i
set T=j
set U=k
set V=l
set W=m
set X=n
set Y=o
set Z=p
Thanks for your help, A-c0rN
batch-file password-encryption
New contributor
put on hold as too broad by Squashman, Stephan, LotPings, aschipfl, Mofi 12 hours ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-3
down vote
favorite
OK, so I am trying to create a batch file that can use an input, and use the letters in the input to randomize it.
For example, I would request a password, HELLO, and output randomized characters, 85bbe.
How would I change the Input to variables, aka the HELLO into "H""E""L""L""O"?
I already have the randomizing code built, but I just don't know how to change a word into individual letters set to variables.
The encryption code for now, is
set A=1
set B=2
set C=3
set D=4
set E=5
set F=6
set G=7
set H=8
set I=9
set J=0
set K=a
set L=b
set M=c
set N=d
set O=e
set P=f
set Q=g
set R=h
set S=i
set T=j
set U=k
set V=l
set W=m
set X=n
set Y=o
set Z=p
Thanks for your help, A-c0rN
batch-file password-encryption
New contributor
put on hold as too broad by Squashman, Stephan, LotPings, aschipfl, Mofi 12 hours ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
OK, so I am trying to create a batch file that can use an input, and use the letters in the input to randomize it.
For example, I would request a password, HELLO, and output randomized characters, 85bbe.
How would I change the Input to variables, aka the HELLO into "H""E""L""L""O"?
I already have the randomizing code built, but I just don't know how to change a word into individual letters set to variables.
The encryption code for now, is
set A=1
set B=2
set C=3
set D=4
set E=5
set F=6
set G=7
set H=8
set I=9
set J=0
set K=a
set L=b
set M=c
set N=d
set O=e
set P=f
set Q=g
set R=h
set S=i
set T=j
set U=k
set V=l
set W=m
set X=n
set Y=o
set Z=p
Thanks for your help, A-c0rN
batch-file password-encryption
New contributor
OK, so I am trying to create a batch file that can use an input, and use the letters in the input to randomize it.
For example, I would request a password, HELLO, and output randomized characters, 85bbe.
How would I change the Input to variables, aka the HELLO into "H""E""L""L""O"?
I already have the randomizing code built, but I just don't know how to change a word into individual letters set to variables.
The encryption code for now, is
set A=1
set B=2
set C=3
set D=4
set E=5
set F=6
set G=7
set H=8
set I=9
set J=0
set K=a
set L=b
set M=c
set N=d
set O=e
set P=f
set Q=g
set R=h
set S=i
set T=j
set U=k
set V=l
set W=m
set X=n
set Y=o
set Z=p
Thanks for your help, A-c0rN
batch-file password-encryption
batch-file password-encryption
New contributor
New contributor
New contributor
asked 14 hours ago
A-c0rN
12
12
New contributor
New contributor
put on hold as too broad by Squashman, Stephan, LotPings, aschipfl, Mofi 12 hours ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as too broad by Squashman, Stephan, LotPings, aschipfl, Mofi 12 hours ago
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago
add a comment |
1
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago
1
1
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
1
Welcome as a new user to SO. Please take the tour and also read How to Ask. Stack Overflow isn't a free script writing service. Own research and code attempts are expected. Edit the question to include your code in a Minimal, Complete, and Verifiable example. A hint to where begin research en.wikipedia.org/wiki/Substitution_cipher
– LotPings
14 hours ago
What do you want to do with non capitalised alphabet characters? What about non standard alphabet characters which aren't integer digits?
– Compo
13 hours ago
This is just an example, I am just trying to make an encryption system, but I cannot find how to find each letter in the file
– A-c0rN
13 hours ago
Possible duplicate: how-to-encrypt-a-text-file-using-batch
– LotPings
13 hours ago