Download src/security/credentials.py from DataEyond/Agentic-Service-Data-Eyond-Catalog: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/security/credentials.py
- Command line
-
hf download hf://spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog@717452f69ec32394dea2a8fc11aba47eebe5bc53/src/security/credentials.py
-
curl -L -o credentials.py https://huggingface.co/spaces/DataEyond/Agentic-Service-Data-Eyond-Catalog/resolve/717452f69ec32394dea2a8fc11aba47eebe5bc53/src/security/credentials.py
433 Bytes
| """Fernet-encrypted credential storage for user-registered DB connections. | |
| Receives the working implementation from the previous | |
| src/utils/db_credential_encryption.py during the cleanup phase. | |
| Key: settings.dataeyond__db__credential__key (Fernet, kept out of source). | |
| """ | |
| def encrypt_credential(plaintext: str) -> str: | |
| raise NotImplementedError | |
| def decrypt_credential(ciphertext: str) -> str: | |
| raise NotImplementedError | |