-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
55 lines (44 loc) · 888 Bytes
/
start.bat
File metadata and controls
55 lines (44 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
echo Which method do you want to use?
echo.
echo 1. Base64
echo.
echo 2. XOR
echo.
choice /c 12 /n /m "Enter your choice: "
if errorlevel 2 (
echo.
echo You chose XOR encoding/decoding.
set text=xor.js
set file=xorFromFile.js
) else (
echo.
echo You chose Base64 encoding/decoding.
set text=base64.js
set file=base64FromFile.js
)
timeout /t 2 /nobreak > nul
cls
echo.
echo Do you want to read input from the keyboard or from the file input.txt?
echo.
echo 1. From keyboard
echo.
echo 2. From file input.txt
echo.
choice /c 12 /n /m "Enter your choice: "
if errorlevel 2 (
echo.
echo You chose to read from file input.txt.
timeout /t 2 /nobreak > nul
cls
node %file%
echo.
pause
) else (
echo.
echo You chose to enter text from the keyboard.
timeout /t 2 /nobreak > nul
cls
node %text%
)