Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

This repository contains a tool for secret-sharing among two parties.

Project description

Refkeys: A secure way for sharing secret (key).

Author & Developer: Ravin Kumar

This repository contains a tool for secret-sharing among two parties.

For example, lets say two parties A and B want to share a secret_key, such that only if they both agree than only shey should be able to get the secret. Our software generates 3 individual keys, one for each party, and one for the mediator. When these keys are combined then only the secret_key can be revealed.

Advantage of our system:

  • Even though the same secret is shared among G1={a,b,c} and G2={x,y,z}. The beauty of refkeys is that, even if some member of a group tries to contact other group members to generate the secret key, it can not be generated.
  • Only when all parties of G1 agrees than only they can generate the secret_key.

Demonstration for generating individual keys:

import refkeys
key=refkeys.get_keys("secure_key_passed_here")
person1_key=key[0]
person2_key=key[1]
mediator_key=key[2]
## note: person1_key,person2_key,mediator_key are of type-list.

Demonstration for generating individual filekeys:

import refkeys
refkeys.get_keyfiles("secure_key_passed_here","person1_name","person2_name","mediator_name",path="./")
## note: names should be distinct, and mediator name is not mandatory.

Demonstration for generating secret key using individual keys:

import refkeys
....
secret_key=refkeys.combine_keys(person1_key,person2_key,mediator_key)
## note: person1_key,person2_key,mediator_key are of type-list.

Demonstration for generating secret key using filekeys:

import refkeys
....
secret_key=refkeys.combine_keyfiles(person1_key,person2_key,mediator_key)
## note: names should be distinct, and mediator name is not mandatory.
Note: Please do use this software at your own risks!!!

The developer, author, creator of this algorithm & program is not liable for any damages (if happened) using this program. Please use other solutions for sharing very secret information, this program is made for general use cases only, don't use it for sensitive work.

Project details


Release history Release notifications

Download files

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

Files for refkeys, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size refkeys-0.0.1-py3-none-any.whl (3.0 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size refkeys-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page