salax / rmathguard

Ruby implementation of mathguard. Generate mathematical expression, which can be used as anti spam solution. With plugin can be used in Rails.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RMathGuard

Inspired by PHP project mathguard.

Usage

Generate expression:

guard = RMathGuard::Expression.new
puts  guard.show

FAT       K1Z
  8         5  QBZ
R7N  21E  JNI
  F         2  U87
CNO       GVO
=> nil

Show result of expression:

guard.result
=> 0

Integration with Rails

About

Ruby implementation of mathguard. Generate mathematical expression, which can be used as anti spam solution. With plugin can be used in Rails.

License:MIT License


Languages

Language:Ruby 100.0%