banner
andrewji8

Being towards death

Heed not to the tree-rustling and leaf-lashing rain, Why not stroll along, whistle and sing under its rein. Lighter and better suited than horses are straw sandals and a bamboo staff, Who's afraid? A palm-leaf plaited cape provides enough to misty weather in life sustain. A thorny spring breeze sobers up the spirit, I feel a slight chill, The setting sun over the mountain offers greetings still. Looking back over the bleak passage survived, The return in time Shall not be affected by windswept rain or shine.
telegram
twitter
github

隨機生成10000組OPENAIAPI-KEY

介紹
這是個 python 小練習,這是用來自動生成 10000 組隨機 open ai 的 key 並可查找可用 key 的 python 程式碼

程式碼比較簡單,gen.py 用來生成,hack.py 用來執行 hack 檔案下的兩個 py 檔案

生成效果

640

640 (1)
使用注意
實際上我們在使用時只需要 gen.py 檔案即可,用來驗證 key 是否有效你可以使用 API-KEY 資訊查詢來查詢https://chatc.vip/key.html。

生成的 key 帶有隨機性,不能保證一定是有效的,看運氣。

Screenshot_4
隨機生成程式碼如下:

import random
import string
import base64

for key in range(1, 10001):
  prefix = "sk-"
  random_string = ''.join(random.choices(string.ascii_letters + string.digits, k=36))
  encoded_string = base64.b64encode(random_string.encode()).decode()

  generated_string = prefix + encoded_string.replace("=", "")
  print(f"Key {key} : {generated_string}")
  with open("keys_1", "a") as f:
    f.write(generated_string + "\n")
載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。