Simple batch Cryptography: howto crypt / decrypt ROT13:
Posted: 04 Aug 2010 16:37
HRZR_EHACNGU:P:\Cebtenzzv
UEME_RUNPATH:C:\Program Files\myProggy\
---::[ ForeworD ]::---
Once again hello to all DosTips.com Community, aGerman here a new challenge:
---::[ SituatioN ]::---
W/ my previous 2 questions and your answers, I finally managed to write my simple script. Everything is working fine, but it is working only for WinXP in italian language. For any other language i should change some particulars my script.
---::[ AnalysiS ]::---
01) set path2crypt="%ProgramFiles%\program_dir\" (which will be smthg like c:\program files\myProggy\)
02) FOR every character from a-Z DO IF a --> n IF b --> o IF c --> p (in few words rot13 encryption (13th rotation subsittution)
03) at the end there should be a variable like %pathencrypted% which contains the rot13-encrypted string.
00) for example if I have:
UEME_RUNPATH:C:\Program Files\myProggy\
it should become:
HRZR_EHACNGU:P:\Cebtenz Svyrf\zlCebttl\
It should NOT replace or take actions on symbols: \ " ' + * - %
---::[ What did I dO? ]::---
As I do always, googled around for 5 days... printed and studied as good as possible the batch-FOR-command help... Unfortunately, even if I resolved myself other 3 issues, this time I need again help.
---::[ What do I neeD? ]::---
I need to change a script so that it works on all windows xp in all languages.
---::[ NoteS ]::---
Just again some comments or info about "very special" functions or characters used...
---::[ ConclusioN ]::---
Thank you again for your wonderful site and forum and for your grateful help!!!
UEME_RUNPATH:C:\Program Files\myProggy\
---::[ ForeworD ]::---
Once again hello to all DosTips.com Community, aGerman here a new challenge:
---::[ SituatioN ]::---
W/ my previous 2 questions and your answers, I finally managed to write my simple script. Everything is working fine, but it is working only for WinXP in italian language. For any other language i should change some particulars my script.
---::[ AnalysiS ]::---
01) set path2crypt="%ProgramFiles%\program_dir\" (which will be smthg like c:\program files\myProggy\)
02) FOR every character from a-Z DO IF a --> n IF b --> o IF c --> p (in few words rot13 encryption (13th rotation subsittution)
03) at the end there should be a variable like %pathencrypted% which contains the rot13-encrypted string.
00) for example if I have:
UEME_RUNPATH:C:\Program Files\myProggy\
it should become:
HRZR_EHACNGU:P:\Cebtenz Svyrf\zlCebttl\
It should NOT replace or take actions on symbols: \ " ' + * - %
---::[ What did I dO? ]::---
As I do always, googled around for 5 days... printed and studied as good as possible the batch-FOR-command help... Unfortunately, even if I resolved myself other 3 issues, this time I need again help.
---::[ What do I neeD? ]::---
I need to change a script so that it works on all windows xp in all languages.
---::[ NoteS ]::---
Just again some comments or info about "very special" functions or characters used...
---::[ ConclusioN ]::---
Thank you again for your wonderful site and forum and for your grateful help!!!