SecureBase Python Library
Project description
TR
SecureBase kütüphanesi standart base64 algoritmasına ek olarak gizli anahtar seçeneği sunmaktadır. Böylelikle kütüphaneyi kullanan projelere özgü base64 işlemi gerçekleşir. Her projenin gizli anahtarı farklı olacağından oluşan base64 çıktısıda gizli anahtara bağlı olarak değişir.
Detaylı bilgi için aşağıdaki kaynağı inceleyiniz.
Kullanım/Örnek
from SecureBase import SecureBase, SBEncoding
#enc = SBEncoding.UNICODE
enc = SBEncoding.UTF8
sb = SecureBase(encoding=enc)
sb.set_secret_key("set-secret-key")
#Text to Base64
encoded = sb.encode(inputdata)
#Base64 to Text
decoded = sb.decode(inputdata)
EN
The SecureBase library offers a secret key option in addition to the standard base64 algorithm. Since the secret key will be different in each project, the base64 output will also vary depending on the secret key.
For detailed information, please review the source below.
Using/Example
from SecureBase import SecureBase, SBEncoding
#enc = SBEncoding.UNICODE
enc = SBEncoding.UTF8
sb = SecureBase(encoding=enc)
sb.set_secret_key("set-secret-key")
#Text to Base64
encoded = sb.encode(inputdata)
#Base64 to Text
decoded = sb.decode(inputdata)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file securebase-1.2.tar.gz
.
File metadata
- Download URL: securebase-1.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c31e7009b41cc020e6f208f87bd90be22b2385eb8e7a26b6b85ff2cdca60db4e |
|
MD5 | b531a348f7a0e805b9ac7c53aabc0318 |
|
BLAKE2b-256 | 39d9544a90a33b2fc5b4b00ab9b4b37f3f24f43a1aaeab4922ddfac22636a634 |
File details
Details for the file SecureBase-1.2-py3-none-any.whl
.
File metadata
- Download URL: SecureBase-1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e76f033ecc7eac9bdb4992c54d05740e424d5fb679974505b66521927996bb2 |
|
MD5 | adefcadfa0e78127698a43c7bd756625 |
|
BLAKE2b-256 | d16d5e1ebcb7243a9cd57496ad89c96baa7536127c2b959a8769149d12866f7f |