Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hullencrypt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hullencrypt

A selfmade cryptolib for sharing passwords in a tree structure

  • 0.0.5
  • PyPI
  • Socket score

Maintainers
1

HullEncrypt

Idea

HullEncrypt (base and gui) are inspired by Skeleton

GUI

The GUI is not working as of 3a7b9ea

Concept

Parent -> Node -> Child -> Child

Every node can be unlocked by it's parent, or it's password, and can unlock all of it's children this is because the childs key is generated by hashing the Parent's key and the Nodes UUID

Security

A user wich has been given an unlocked Node can't get the parents key with the knowledge of the childs key as it is hashed + salted to get the childs key, allowing for multiple Children on the same node without having security issues.

Example usage

import base
import os

root_node = base.Node(parent_key=os.urandom(16), name=b'root_node', password=b'example pass')
root_key = root_node.get_key(password=b'example pass')

# needs the root_key to create new child
user_one = base.Node(parent_key=root_key, name=b'user_one', password=b'users pass')
user_key = user_one.get_key(password=b'user pass')
root_node.children.append(user_one)

netflix = base.Node(parent_key=user_key, name=b'neftlix', content=b'Netflix password')
user_one.children.append(user_one)

del root_key
del user_key

# later for auth

passw = input("Enter your password: ").encode("utf-8")
neftlix = user_one.get_child(["neftlix"])
user_key = user_one.get_key(password=passw)
netflix_key = user_one.get_child_key(key=key, path=["netflix"])
del user_key

print(netflix.get_content(netflix_key).decode("utf-8"))
del netflix_key

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc