Metadata-Version: 2.1
Name: json-encrypted-token
Version: 0.0.3
Summary: JET - JSON Encrypted Token
Home-page: https://github.com/FR98/jet-python
Author: Francisco Rosal
Author-email: frangrosalo@hotmail.com
License: UNKNOWN
Description: # jet-python
        JSON Encrypted Token - Python module
        
        ```python
        from jet import JET
        from jet.utils import hmac_sha256
        
        
        GLOBAL_JET = JET(
            SECRET = 'my-secret-string'
        )
        
        user_secret = hmac_sha256('user-password', 'user-password', 'ascii')
        
        payload = {
            'id': 1,
            'message': "Hola"
        }
        
        # Generate token
        token = GLOBAL_JET.encrypt(user_secret, payload)
        
        # Get info on token
        decrypted_meta, decrypted_payload = GLOBAL_JET.decrypt(user_secret, token)
        
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
