CredentialHolder-0.0.7


توضیحات

simple class for serializable and secure credential holder
ویژگی مقدار
سیستم عامل -
نام فایل CredentialHolder-0.0.7
نام CredentialHolder
نسخه کتابخانه 0.0.7
نگهدارنده []
ایمیل نگهدارنده []
نویسنده brando
ایمیل نویسنده snoopy20704@gmail.com
آدرس صفحه اصلی https://github.com/bmpang/PythonCredentialHolderClass
آدرس اینترنتی https://pypi.org/project/CredentialHolder/
مجوز -
# Simple Serializable Credential Holder This is a simple class for handling credentials. It is serializable for data transfer and is able to securely hold credentials in its constructed form. ## Usage To get a serialized credential holder, start by picking a passphrase (that you must remember or keep track of) for usage as an encryption key. Then, create an instance of the CredentialHolder object using the credential you want to encrypt and the passphrase and you can serialize it and use the string to store or communicate the credentials. ```Python from credential_holder import CredentialHolder, CredentialHolderSerializer credential_holder = CredentialHolder("passphrase", "password") serialized_credential_holder = CredentialHolderSerializer.serialize_credential_holder(credential_holder) ``` This creates something along the lines of ```Python serialized_credential_holder = 'aG9sZGVyLl' + 'GQzXHInKQ==' # shortened representation of a large base64 string ``` This value can be then transferred and used elsewhere as follows ```Python from credential_holder import CredentialHolderSerializer serialized_credential_holder = "same_as_above" credential_holder = CredentialHolderSerializer.deserialize_credential_holder(serialized_credential_holder) credential_holder.get_credential("passphrase") ``` Using the wrong passphrase will cause an Exception - you will not be able to decrypt a Credential Holder or serialized string unless you have the same passphrase that was used to create it.


نیازمندی

مقدار نام
- pycryptodome


نحوه نصب


نصب پکیج whl CredentialHolder-0.0.7:

    pip install CredentialHolder-0.0.7.whl


نصب پکیج tar.gz CredentialHolder-0.0.7:

    pip install CredentialHolder-0.0.7.tar.gz