Unofficial Python Wrapper Library for CookieCloud
March 2, 2023 ยท View on GitHub
PyCookieCloud is is an unofficial Python wrapper library for CookieCloud. The decryption of data happens on the client side.
Table of Content
Installation
pip install PyCookieCloud
Windows user might need to rename your Python\PythonXX\Lib\site-packages\crypto to Python\PythonXX\Lib\site-packages\Crypto
Usage
from PyCookieCloud import PyCookieCloud
def main():
cookie_cloud = PyCookieCloud('YOUR_COOKIE_CLOUD_URL', 'YOUR_COOKIE_CLOUD_UUID', 'YOUR_COOKIE_CLOUD_PASSWORD')
the_key = cookie_cloud.get_the_key()
if not the_key:
print('Failed to get the key')
return
encrypted_data = cookie_cloud.get_encrypted_data()
if not encrypted_data:
print('Failed to get encrypted data')
return
decrypted_data = cookie_cloud.get_decrypted_data()
if not decrypted_data:
print('Failed to get decrypted data')
return
print(decrypted_data)
another_cookie_cloud = PyCookieCloud('YOUR_COOKIE_CLOUD_URL', 'YOUR_COOKIE_CLOUD_UUID_2', 'YOUR_COOKIE_CLOUD_PASSWORD_2')
if not another_cookie_cloud.update_cookie(decrypted_data):
print('Failed to update cookie')
return
another_decrypted_data = another_cookie_cloud.get_decrypted_data()
print(another_decrypted_data)
print(decrypted_data == another_decrypted_data)
if __name__ == '__main__':
main()