From the course: Securing Django Applications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Zero knowledge encryption of data in Django - Django Tutorial
From the course: Securing Django Applications
Zero knowledge encryption of data in Django
- [Narrator] Before we get into the code. Remember that encryption and cryptography and security are tough subjects to be an expert at. For example, spider Oak uses multiple sets of encryption algorithms for their zero knowledge storage, while we are only using one algorithm. If you are asked to use the code, we write here in a production setting, hire a cybersecurity expert to audit the code. So, here we have a new model for users to be able to store a travel journal and descriptions of their trip. This is data that should always be kept private, but that is convenient for us to hold onto for the user. We are acting as data custodians. (mouse clicking) We're going to create a custom permission, called only creator permission. It is a subclass of Django rest frameworks based permission, and, we are overriding the has permission method. (keyboard keys clicking) And we want to allow only post or get methods on…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.