Recently,for my project,I made a Calculator using eval(). Then I realized how much of a security threat could it really be knowing that it directly runs the commands. I wanted to know is there any Eval like functions in math library which Only gives the answer of a string like this(and not a security threat like eval?)? "2*10"
Asked
Active
Viewed 27 times
0
-
No, check out the different approaches in the linked duplicate, though – juanpa.arrivillaga Oct 21 '21 at 06:15