Recently on a specific forum, a new database was released containing Linkedin account information. This database supposedly contains at least 700 million account details, though there have been postings claiming that there are more details in addition to those 700 million. The information that was released seems to be accurate, but it is impossible to tell if the entire database is real, as the database is locked behind a paywall. The information also seems to primarily be gathered through a python scraper or similar method and does not contain account passwords. However, it does contain physical location information and a number of other personal details. I won't link the sale thread, but here are a few articles describing the situation. Privacy sharks, Restore privacy, Business Today.
PGPy is a library for python that enables the creation, storage, and encryption/decryption of PGP keys and files in python. Recently, in a small project to reacquaint myself with python, I used PGPy for key generation and encryption and decryption. That project can be found in my github at https://github.com/lpowell . The goal of the project was to use command-line switches to control the program, and to provide basic encryption and decryption capabilities, along with rot13 and base64 encoding. First, to load in a key use key, _ = pgpy.PGPKey.from_file(keyfilename) . This loads the key from either a binary or ASCII armored file. You can swap out .from_file for .from_blob , if you plan on using a key stored in a string or bytes object rather than a file. In my example code, I pull the key from a file, as I found it to be the simpler method. Next, you'll need to open a file or create a string or bytes object that contains the message you wish to encrypt. We'll call this file
Post a Comment