
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Another hash library, but with a twist. It provides a simple interface to generate hashes for strings, files, dicts, lists and sets. It also provides a decorator to cache the results of a function to disk and (optionally) memory.
pip install hashy
hashy provides an md5, sha256 or sha512 for string, file, dict, list and set.
String and file hashes are conventional and can be compared to other implementations. For example, you can go to an online hash calculator for "a" and get the same hash as hashy generates.
Hashes for complex data types like dict, list and set are specific to hashy.
Supports multithreading and multiprocessing, via the sqlitedict
library. While the sqlite
database itself is not
thread-safe/process-safe, the sqlitedict
library provides a thread-safe/process-safe interface.
hashy
also provides cachy
, a decorator that can be used to persistently cache the results of a function to
disk and (optionally) memory. It is similar to @functools.cache
, except:
from hashy import get_string_sha256, cachy
print(get_string_sha256("a")) # prints ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb
@cachy()
def func(a):
return a + a
print(func(2)) # prints 4
FAQs
simple hash library for string, file, dict, set and list
We found that hashy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.