Re: Encrypt entire Django project and decrypt in ram to start server.

49 views
Skip to first unread message

Kasper Laudrup

unread,
Nov 13, 2023, 12:12:57 PM11/13/23
to django...@googlegroups.com
On 13/11/2023 06.15, Om Khade wrote:
> I want to save my Django project on a shared server in encrypted format
> and build a script that decrypts the Django project files in ram and
> start the server so that code is not leaked or anyone is not able to
> tamper with it.
>
> Is there a way to do this?
>

No, you cannot do that.

This is a task for your legal team not something you can handle technically.

Kind regards,
Kasper Laudrup
OpenPGP_0xE5D9CAC64AAA55EB.asc
OpenPGP_signature.asc

Om Khade

unread,
Nov 13, 2023, 12:49:46 PM11/13/23
to django...@googlegroups.com
Yes we also have a legal team working on this, we want to encrypt the code base so that the licencing logic is not tampered and is hard to bypass.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ce3be7d9-2424-479e-8f4e-05e48bd51462%40stacktrace.dk.

Muhammad Juwaini Abdul Rahman

unread,
Nov 14, 2023, 12:52:00 AM11/14/23
to django...@googlegroups.com
Don't use a shared server.

A dedicated server is not that expensive anyway and 'cheaper' than having to encrypt (and decrypt on the fly) your code.

On Mon, 13 Nov 2023 at 21:54, Om Khade <khad...@gmail.com> wrote:
I want to save my Django project on a shared server in encrypted format and build a script that decrypts the Django project files in ram and start the server so that code is not leaked or anyone is not able to tamper with it.

Is there a way to do this?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Daniel Martinez

unread,
Nov 14, 2023, 9:17:44 AM11/14/23
to django...@googlegroups.com
A solution for that is add a IP blocker in your server to avoid brutal forces attacks that way you can use. 

Or a tool for monitoring you traffic such Snoft. 

Happy coding 😎

Sebastian Jung

unread,
Nov 14, 2023, 9:54:38 AM11/14/23
to django...@googlegroups.com
I think this here are a good solution where you can build all files as .so files which i think are c files.


Reply all
Reply to author
Forward
0 new messages