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










share|improve this question







New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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

















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










share|improve this question







New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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















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










share|improve this question







New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question







New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









A-c0rN

12




12




New contributor




A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






A-c0rN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




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
















  • 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



















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents