Skip to main content

queueCrypt.

"queueCrypt" is a library that is library that creates a queue and secures it better. Basically this library encrypts the data that is been added to the queue and saves the data securely and safely.

Libraries Needed:

pip install cryptography

this library is needed to encrypt the data. Without this library the library won't work!

How To Call The Library?

from queueCrypt import Queue

To Call The Errors Exceptions Use:

from queueCrypt import ErrorQueueSizeNotValid, ErrorRequestedHigherThanExpected
#----OR----#
from queueCrypt.errors import *

To Call The Encryption Handler Use:

from queueCrypt.ext import Encryption
#----OR----#
from queueCrypt.ext import *

First Thing That Needed Before Using...

from queueCrypt import *

q = Queue(5)
#----OR----#
q = Queue()

Every time that you create the Queue function you can set Queue(number) or use Queue() which will leave the queue with no limit. By setting a number, you set the queue length, that can be changed if you need by using q.change_queue_length(number).

Examples:

  • Let's create a secret input from the user that takes passwords and encrypts them. The user will type the passwords until he will type "quit". After adding them to the queue, print the encrypted list, and the decrypted list.
from queueCrypt import *

q = Queue()

while True:
    user = input("Type passwords: ")
    if user == "quit":
        break
    # When putting the user data you need to convert it to bytes!
    q.put(bytes(user, 'utf8'))

# returns in bytes form.
print(q.get_queue_encrypted())
print(q.get_queue_decrypted())
  • Now let's say that you want to encrypt the data again but after printing the inputted data, you return the encrypted data and delete it.
from queueCrypt import *

q = Queue()

while True:
    user = input("Type passwords: ")
    if user == "quit":
        break

    # When putting the user data you need to convert it to bytes!
    q.put(bytes(user, 'utf8'))
    print(q.get_queue_encrypted()[0].decode())
    # destroys the first element in the queue list with timeout of 0.1.
    q.next_and_destroy(0.1)

Release files for queueCrypt 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for queueCrypt 0.0.2
File Size Uploaded
queueCrypt-0.0.2.tar.gz 2.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for queueCrypt 0.0.2
File Interpreter ABI Platform
queueCrypt-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.5 MB

Release files / queueCrypt-0.0.2.tar.gz

Download URL queueCrypt-0.0.2.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
791c390a3f78eed26543d4b6dec6c9e93c298494f550ffbe30f0b0d1dbeeb77f
BLAKE2b-256 checksum
How to use checksums
6340af1959ce1e7857f9e7742378cd59fc07cb45cc562af0a0a97f2384bbd861
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release files / queueCrypt-0.0.2-py3-none-any.whl

Download URL queueCrypt-0.0.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
701b8a7d7d26ddcd14ebbb266a9e6c5a0c39f69cd9e0ce324ee1540b72332d0a
BLAKE2b-256 checksum
How to use checksums
2a32e81c757cfcc8f637a765c8ee48da0b9e17488d18221629dd3a7bc392a560
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page