You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

clockcaptcha

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clockcaptcha

Dynamically generated, AI-resistant captcha images

0.1.3
pipPyPI
Maintainers
1

clockcaptcha

Dynamically generated, AI-resistant captcha images.

captcha

Can you tell what time it is? AI can't.

Features:

  • dynamically generated images
  • rgb and grayscale color mode
  • 12-hour and 24-hour clock mode
  • custom colors

Installation

pip install clockcaptcha

Usage

from clockcaptcha import ClockCaptcha

captcha = ClockCaptcha()
print(captcha.value)

captcha.verify('0645') # True/False
captcha.save_image('image.png')

# generate new captcha
captcha.generate_new()

Choose between color_mode='rgb' (color-captcha.png) or 'grayscale' (grayscale-captcha.png).

Pick between a 12-hour or a 24-hour clock_mode.

from clockcaptcha import ClockCaptcha

captcha = ClockCaptcha(clock_mode=12)

Image size can be changed with relative size parameter. Here are corresponding pixel values.

sizewidthheight
119065
2380130
3570195
4760260
.........

Change colors globally:

from clockcaptcha import ClockCaptcha
ClockCaptcha.set_colors([
    '#FFFFFF',
    '#000000',
    '#999999'
])

Keywords

captcha

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.