# elixir-captcha
**Repository Path**: PulitzerStan/elixir-captcha
## Basic Information
- **Project Name**: elixir-captcha
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-05-06
- **Last Updated**: 2022-05-11
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Captcha
This is a Elixir lib for generating captcha. No dependencies. It drawing captcha image with C code. No ImageMagick, No RMagick.
C code come from: [https://github.com/huacnlee/rucaptcha](https://github.com/huacnlee/rucaptcha)
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed as:
1. Add `captcha` to your list of dependencies in `mix.exs`:
def deps do
[{:captcha, "~> 0.1.0"}]
end
2. Ensure `captcha` is started before your application:
def application do
[applications: [:captcha]]
end
## Usage
```elixir
# allow customize receive timeout, default: 10_000
case Captcha.get() do
{:ok, text, img_binary } ->
# save text in session, then send img to client
{:timeout} ->
# log some error
end
```