File size: 1,600 Bytes
0f8ce39
 
 
 
 
 
 
 
 
 
 
4b54262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
title: KeyLock Auth Creator
emoji: πŸ‘
colorFrom: green
colorTo: gray
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
---

# 🏭 KeyLock Image Creator

This application provides a user-friendly interface to create secure, encrypted PNG images compatible with the KeyLock ecosystem.

It is designed to work with one or more "Decoder API" services. By providing a JSON configuration, you can easily select which service you want to encrypt data for, and this app will automatically use the correct public key.

## How to Use

1.  **Prepare a JSON Configuration:** Create a JSON file or string that contains a list of your decoder services. Each service in the list must be an object with three keys:
    -   `name`: A user-friendly name for the service (e.g., "My Production API").
    -   `link`: A URL to the service for reference.
    -   `public_key`: The full PEM-formatted public key string for that service.

2.  **Paste the Configuration:** Paste your JSON into the "JSON Configuration" textbox in the app. The "Select Decoder Service" dropdown will automatically populate with the names of the services you provided.

3.  **Enter Your Secret Data:** In the "Secret Data" textbox, enter the information you want to encrypt, one key-value pair per line (e.g., `USERNAME: my_user`).

4.  **Select a Service:** Choose the target service from the dropdown menu.

5.  **Create Image:** Click the "Create Encrypted Image" button. The app will generate a new PNG with your data securely embedded and encrypted for the selected service. You can then preview and download the image.