A 90's era Keygen-like for X11 for Unix/Linux
A 90’s era Keygen-like for X11 for Unix/Linux
一款复刻 90 年代风格的 Unix/Linux X11 注册机生成器
Keygen - X11 Key Generator A simple graphical key generator application using the X11 library like the good old keygen from the 1990’s era but for UNIX. FreeBSD and Linux are supported. Keygen - X11 注册机生成器。这是一个使用 X11 库编写的简单图形化注册机程序,旨在复刻 90 年代经典的注册机风格,并专为 UNIX 系统打造。目前支持 FreeBSD 和 Linux。
Background sound is using ALSA on Linux Background sound is using Open Sound System (OSS) on FreeBSD “Because I’m a huge fan of Samurai” — Hana wa sakuragi, hito wa bushi And yes, Keygen are totally useless now because we are free and use Free Software! Linux 上的背景音乐使用 ALSA 驱动,FreeBSD 上则使用开放声音系统 (OSS)。“因为我是武士的忠实粉丝”——花为樱木,人为武士。当然,现在的注册机已经完全没用了,因为我们崇尚自由,并使用自由软件!
Requirements C compiler (GCC or clang) X11 development libraries Alsa library libasound Mpeg library libmpg123 Jpeg library libjpeg Xft library libxft for font rendering To render Japanese Kanji you need to install KanjiStrokeOrders font from https://www.nihilist.org.uk 系统要求: C 编译器 (GCC 或 clang) X11 开发库 Alsa 库 (libasound) Mpeg 库 (libmpg123) Jpeg 库 (libjpeg) 用于字体渲染的 Xft 库 (libxft) 若要渲染日文汉字,需从 https://www.nihilist.org.uk 安装 KanjiStrokeOrders 字体。
Building make 构建: make
Usage ./keygen 使用方法: ./keygen
Features Generates random 16-character alphanumeric keys Keys are formatted with dashes every 4 characters (e.g., ABCD-1234-EFGH-5678) Click the “Generate” button to create a new key Press Q or Escape to quit Press S to change the background Press M to mute the sound Press N to change the mp3 music played 功能特性: 生成 16 位随机字母数字组合的密钥 密钥每 4 位用连字符分隔(例如:ABCD-1234-EFGH-5678) 点击“Generate”按钮生成新密钥 按 Q 或 Escape 键退出 按 S 键更换背景 按 M 键静音 按 N 键切换播放的 MP3 音乐
How it works The application creates an X11 window with: A title at the top The generated key displayed in the center A “Generate” button at the bottom It display the image in the img/ folder as background It plays a sound in the background as well Each time you click the button, a new random key is generated using rand() seeded with the current time. 工作原理: 该程序会创建一个 X11 窗口,包含: 顶部的标题 居中显示的生成密钥 底部的“Generate”按钮 程序会将 img/ 文件夹中的图片作为背景显示,并同时播放背景音乐。 每次点击按钮时,程序都会使用当前时间作为种子,通过 rand() 函数生成一个新的随机密钥。
Visual Here what its looks like, but the experience is way better with the 8-bits background sound 视觉效果: 这是它的外观展示,但配合 8-bit 背景音乐体验会更好。
FAQ The 8-bits chiptune background music are royalty free and are from the website https://www.fesliyanstudios.com 常见问题: 这些 8-bit 芯片音乐均为免版税音乐,来源于网站 https://www.fesliyanstudios.com