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")
加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。