Skip to main content

A selfmade cryptolib for sharing passwords in a tree structure

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hullencrypt-0.0.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hullencrypt-0.0.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file hullencrypt-0.0.1.tar.gz.

File metadata

  • Download URL: hullencrypt-0.0.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for hullencrypt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8aefd9942b8592e28fa539354c334a26aeb529f6e8ef3528db3f4c3f30372b4f
MD5 e3a23890e6e7136d6e9e934ed4bbaf7f
BLAKE2b-256 fed7f3aaba68e7ee3a531faf4a6e90b7616481f0b4db817d06989d9dae614b25

See more details on using hashes here.

File details

Details for the file hullencrypt-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: hullencrypt-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for hullencrypt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e216bd7a4a0b1a0fdc58992c7e15dba7954b1845c379f864bdf44e32a51c34d4
MD5 82de146f79290a61f1d3c7f73e837abb
BLAKE2b-256 47f241ee2a1267e9f7bb6bb69bbf2df54d3d542f9ffa03ab2dd8ced981137f19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page