Hack Forums
[Shell] Simple number encryption trick. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Simple number encryption trick. (/showthread.php?tid=5599685)



Simple number encryption trick. - zask - Apr 14, 2017

Hey I made this trick using basic math, could probably be used on some letter substitution cipher or something. Its pretty much Fermat's little Therom.

@echo off
Set /p "INPUT=type a number : "
Set /a "VAR1=%INPUT%*%INPUT%"
Set /a "VAR2=%VAR1%-%INPUT%"
Set /a "VAR3=%VAR2%/%INPUT%"
Set /a "VAR4=%VAR3%+1"
Echo Your original number is %VAR4%
Pause