Open in app
Home
Notifications
Lists
Stories

Write
Amirali Sanatinia
Amirali Sanatinia

Home
About

Sep 29, 2021

Securely checking if a password is compromised in Python

Have I Been Pwned is a service that allows users to check if their account/password is compromised. It’s useful and important to know whether your password is compromised so you can change it. However, one problem with using the service via their web portal is that you need to provide…

Security

3 min read

Securely checking if a password is compromised in Python
Securely checking if a password is compromised in Python

Jul 8, 2021

Protecting Python software supply chain

Software supply chain is an important aspect of secure software development. Recently, we’ve seen an increase in the number of software supply chain attacks. We can protect against some of these attacks by following best practices during the development, and by ensuring the right packages are used. Many of these…

Python

4 min read

Protecting Python software supply chain
Protecting Python software supply chain

Dec 7, 2017

How to Work with Infinity in Python

Some of the times we need to use positive or negative infinity as a value. For example, it is used in algorithms where you need to compare the current solution to the best solution so far. Usually at the initiation step, we like to set the cost/value to positive or…

Python

2 min read

How to Work with Infinity in Python
How to Work with Infinity in Python

Aug 23, 2017

Python Matplotlib Style

Matplotlib is a great and very capable plotting library for Python. Matplotlib 2.0 made a few changes to their default style that improved the look and feel the graphs. However, we can do more by defining our own settings. This is the setup that I usually use for my plots. plt.style.use('seaborn-poster') plt.style.use('fivethirtyeight') plt.rcParams['axes.edgecolor'] = '#ffffff' plt.rcParams['axes.facecolor'] = '#ffffff' plt.rcParams['figure.facecolor'] = '#ffffff' plt.rcParams['patch.edgecolor'] = '#ffffff' plt.rcParams['patch.facecolor'] = '#ffffff' plt.rcParams['savefig.edgecolor'] = '#ffffff' plt.rcParams['savefig.facecolor'] = '#ffffff' plt.rcParams['xtick.labelsize'] = 16 plt.rcParams['ytick.labelsize'] = 16

Python

2 min read

Python Matplotlib Style
Python Matplotlib Style

Jul 17, 2017

What is Intel SGX

Intel Software Guard Extensions (SGX), is a set of security architecture extensions first introduced in the Skylake microarchitecture that enables a Trusted Execution Environment (TEE). It provides an ‘inverse sandbox’, for sensitive programs, and guarantees the integrity and confidentiality of secure computations even from the most privileged malicious software (e.g…

Security

2 min read

What is Intel SGX
What is Intel SGX

Jan 6, 2017

Securing MongoDB

Given the recent ransomware attacks on MongoDB, here is a short guide on how to secure access to MongoDB. MongoDB has a very good and detailed documentation on how to secure the database, which you should check out. Security Checklist - MongoDB Manual 3.4 MongoDB Manual 3.4 Security Checklistdocs.mongodb.com Security Tutorials - MongoDB Manual 3.0 MongoDB Manual 3.0 Security Tutorialsdocs.mongodb.com

Mongodb

3 min read

Amirali Sanatinia

Amirali Sanatinia

Security, Cryptography, Privacy, AI

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable