Home > Net > Have know how to set a long SQL statements js encryption into fixed length to the background, and th
Have know how to set a long SQL statements js encryption into fixed length to the background, and th
Time:11-18
Recently there is a demand, because of the implementation of no access to database server, so I'm going to do a simple page in a program, a textarea text input SQL statements, and then point queries, to show the results page dynamic found out to the list, the question now is if it is a very long SQL statements, page tip can't wear illegal characters, the current solution is going to the front of SQL encryption into fixed length of string, legally and. Net background, tried several encryption algorithms, encryption string is long, is there any bosses know how to deal with this problem, thank you very much
CodePudding user response:
Give them specific business API development, rather than give them literally "to add and delete this sort of thing,"
CodePudding user response:
Accepts user input of SQL, still need to deal with precisely the special characters, and restrict the user to enter the SQL type (such as shielding insert the delete, update), from the perspective of security, or according to the opinions of upstairs, develop the specified API to somebody else,