Can realize the encryption function of similar software on the market. As for things like King Kong encryption, I won't mention it——It takes too much time to encrypt file contents with the MD5 encryption algorithm, which is not as good as using WinRAR encryption.
The code for file encryption.bat is as follows:
@echo off
md RECYCLER55
:: Can create any directory similar to RECYCLER55 (of course, you can also take other names, but you have to modify RECYCLER55 accordingly later)
echo [.ShellClassInfo] > RECYCLER55\desktop.ini
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E} >> RECYCLER55\desktop.ini
attrib RECYCLER55 +s +h
md \\.\%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688...\
:: Can create any deformed directory similar to MICROSOFT-1234567-1234567-12345678...\
cls
:: The above code creates a special directory
echo Please drag the folder to be encrypted and press Enter
echo (It is best that the folder is in the root directory and the folder name has no spaces):
set /p scrfile=
cls
md %scrfile%_bak
move %scrfile% %scrfile%_bak
for %%i in ("%scrfile%") do ren \\.\%CD%%%~ni_bak\%%~ni com9.{21EC2020-3AEA-1069-A2DD-08002B30309D}
:: The above code creates a directory 'the name of the directory to be encrypted_bak', then cuts the directory to be encrypted into it and renames it to the special directory name
:: echo The following is to cut the folder %scrfile%_bak into the opened folder
move %scrfile%_bak "%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688....\"
:: Note: When moving under XP above, MICROSOFT-7701091-6666888-16826688....\ has 4 dots. If there is one less dot, it will prompt that the path is not found
move %scrfile%_bak "%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688...\"
:: Note: When moving under Vista above, MICROSOFT-7701091-6666888-16826688....\ has only 3 dots. If there is one more dot, it will prompt that the path is not found
echo Encryption completed!
Next time I will post the decryption folder.bat
The code for file encryption.bat is as follows:
@echo off
md RECYCLER55
:: Can create any directory similar to RECYCLER55 (of course, you can also take other names, but you have to modify RECYCLER55 accordingly later)
echo [.ShellClassInfo] > RECYCLER55\desktop.ini
echo CLSID={645FF040-5081-101B-9F08-00AA002F954E} >> RECYCLER55\desktop.ini
attrib RECYCLER55 +s +h
md \\.\%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688...\
:: Can create any deformed directory similar to MICROSOFT-1234567-1234567-12345678...\
cls
:: The above code creates a special directory
echo Please drag the folder to be encrypted and press Enter
echo (It is best that the folder is in the root directory and the folder name has no spaces):
set /p scrfile=
cls
md %scrfile%_bak
move %scrfile% %scrfile%_bak
for %%i in ("%scrfile%") do ren \\.\%CD%%%~ni_bak\%%~ni com9.{21EC2020-3AEA-1069-A2DD-08002B30309D}
:: The above code creates a directory 'the name of the directory to be encrypted_bak', then cuts the directory to be encrypted into it and renames it to the special directory name
:: echo The following is to cut the folder %scrfile%_bak into the opened folder
move %scrfile%_bak "%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688....\"
:: Note: When moving under XP above, MICROSOFT-7701091-6666888-16826688....\ has 4 dots. If there is one less dot, it will prompt that the path is not found
move %scrfile%_bak "%CD%RECYCLER55\MICROSOFT-7701091-6666888-16826688...\"
:: Note: When moving under Vista above, MICROSOFT-7701091-6666888-16826688....\ has only 3 dots. If there is one more dot, it will prompt that the path is not found
echo Encryption completed!
Next time I will post the decryption folder.bat
