Commit Graph

95 Commits

Author SHA1 Message Date
hrj
9c7efb5e4a toString method for Challenge 2019-06-08 11:06:53 +05:30
Rahul Rudragoudar
535c59a218 Merge branch 'mapId' 2019-04-07 22:36:23 +05:30
Rahul Rudragoudar
f3f8900fd4
Minor fixes
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 20:50:56 +05:30
Rahul Rudragoudar
ed05489cd0
Add UUID support
mapId table in implemented for mapping of public to private ID
Challenge returns a random UUID instead of captcha token

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 13:11:14 +05:30
Rahul Rudragoudar
fe9138dbaf
Add method to check for unsolved captchas
The framework checks for existing unsolved captchas before generating new captcha
The captcha is set to solved after the media is requested

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-07 10:49:34 +05:30
Rahul Rudragoudar
89a1039c87
Minor fixes
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 23:26:51 +05:30
Rahul Rudragoudar
184d167085
Add buffer to inital throttle
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 11:42:11 +05:30
Rahul Rudragoudar
97d703a217 Merge remote-tracking branch 'upstream/master' 2019-04-06 11:31:22 +05:30
Rahul Rudragoudar
37bf3b1d7f
Add Captcha thread throttle
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-04-06 11:30:06 +05:30
hrj
1d3573c59f rain drops captcha tweaks 2019-04-01 18:32:56 +05:30
hrj
a207b9dee6 refining the Rain drop captcha 2019-04-01 00:30:45 +05:30
hrj
beb184d7a9 rain drop animation 2019-03-31 22:58:58 +05:30
hrj
80cf6b66fd add attribution to gif sequence writer class 2019-03-31 19:03:22 +05:30
hrj
9d9657d373 rain drop single frame 2019-03-31 18:53:16 +05:30
Rahul Rudragoudar
4c0d832803 Minor fixes
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-03-27 08:20:28 +05:30
Rahul Rudragoudar
aa9d602950 Merge branch 'master' of https://github.com/rr83019/lc-core 2019-03-26 23:19:48 +05:30
Rahul Rudragoudar
e18354c259 Add LabelCaptcha plugin
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2019-03-26 23:19:01 +05:30
hrj
ece47037d4
Merge branch 'master' into master 2019-03-26 18:57:21 +05:30
Rahul Rudragoudar
8e99f2713d Add method to choose random captcha 2019-03-26 18:44:31 +05:30
Prajwal Goudar
f2c588ef23 support for loading fonts dynamically with an option to choose level (#26)
* support for loading fonts dynamically with an option to choose level("easy","medium","hard")

* removed unwanted method

* changes made as required
2019-03-25 19:44:38 +05:30
hrj
8f701f255e
Merge pull request #14 from PrajwalGoudar/master
added code to generate font fun captcha(type_1)
2019-03-13 10:12:39 +05:30
Prajwal Goudar
0fe1dd1ae4 made changes to checkCaptcha function 2019-03-13 10:08:17 +05:30
Rahul Rudragoudar
c43ffd6dd3 Added GET request support for media end point 2019-03-12 18:17:34 +05:30
Prajwal Goudar
a4a3a63f3f added captcha types as required 2019-03-09 16:27:36 +05:30
Prajwal Goudar
bb9fa10d72 fixed issues 2019-03-09 16:23:56 +05:30
Rahul Rudragoudar
cddb143cf7 Added contentType:varchar field in db 2019-03-07 13:02:41 +05:30
Prajwal Goudar
994c5751ca added code to generate font fun captcha(type_1)
added code to generate gif format captcha(type_2)
added code to generate shadow text captcha(type_3)
minor changes in Main.scala file to fix errors
2019-03-06 02:53:09 +05:30
hrj
d99b120b2c redesign the challenge provider interface to be Java compatible 2019-03-05 17:49:20 +05:30
Rahul Rudragoudar
07a2f38065 Removed convertImage method 2019-02-26 21:10:46 +05:30
Rahul Rudragoudar
079fa0cd3d Changed all end points to POST
Removed serialization of objects to db
Added Map to track providers
2019-02-23 22:11:31 +05:30
Rahul Rudragoudar
e52b87d72e Added thread support
Added scheduleThreadPoolExecutor to run the thread periodically
2019-01-26 13:21:34 +05:30
Rahul Rudragoudar
77bc4c6ccf Defined separate class for http endpoints 2018-12-28 23:41:21 +05:30
Rahul Rudragoudar
94200d10f2 Minor changes 2018-12-28 11:53:26 +05:30
Rahul Rudragoudar
eb8c8d272e Added validation http end point
Added Object column in h2 db
2018-12-17 16:10:10 +05:30
Rahul Rudragoudar
36aa8639fd Added binary data support for response class 2018-12-17 13:38:31 +05:30
Rahul Rudragoudar
3c6bcad7bb Added captcha and media http end points
Added convertImage method
2018-12-17 13:36:36 +05:30
Rahul Rudragoudar
4acb527ec8 Returns the body in string format 2018-11-10 12:34:05 +05:30
Rahul Rudragoudar
4bf6b45f2f Added the JLHTTP server 2018-11-10 12:29:12 +05:30
Sanjana Baliga
223808ba98 Minor fixes
- Used prepared statements and made them immutable
- Fixed indentation
2018-06-14 10:57:06 +05:30
sanjana
f73f2a762f Initial commit for the framework
The ChallengeProvider trait provides the methods to be implemented by the challenge providers.

The framework gets a challenge from a challenge provider, inserts the details of the challenge into the database, and gives the challenge to the user. It then gets the answer from the user, and sends it to the challenge provider for verification.

This commit includes the implementation only for FilterChallenge provider.
2018-06-06 12:18:40 +05:30
sanjana
d2dbb36fd1 Formatting and correction in thread safety 2018-01-07 13:34:53 +05:30
sanjana
3ad3a0e73e Minor changes: coding style and thread safety 2018-01-07 09:59:32 +05:30
sanjana
40d0fbd0f7 Add FilterCaptcha
FilterCaptcha generates a random string, creates an image of the string, and applies a series of filters to make the string hard to read.
2018-01-06 10:10:43 +05:30
sanjana
dfa146e139 Separate captcha classes and add LabelCaptcha
LabelCaptcha creates a pair of known and unknown images. BlurCaptcha is modified to use a better filter.
2018-01-04 15:50:59 +05:30
sanjana
4610245b38 Initial skeleton for the framework. 2018-01-03 09:12:43 +05:30