Can stored procedure in MySql 5.0.x be encrypted?

前端 未结 2 1444
难免孤独
难免孤独 2020-12-20 07:21

In Microsoft Sql it is possible to encrypted stored procedures with

CREATE PROCEDURE dbo.foo 
WITH ENCRYPTION 
AS 
BEGIN 
    SELECT \'foo\' 
END

2条回答
  •  半阙折子戏
    2020-12-20 07:48

    You can not do this in MySQL. See bug #4210.

    [Edit]: The comment from Leonidas on another answer to this question needs to be out there for anyone to read, so I'm quoting it here:

    Obfuscation can be reversed. I found at least one product via Google, that promises to reveal the SP-code. So I think/hope that the MySQL-team won't bother with "security by obscurity" or even worse "intellectual asset protection" (as described in the bug 4210).

提交回复
热议问题