hrj
5218653f56
shadow text: center text
2022-04-05 10:12:38 +05:30
hrj
f8626e3670
shadow text: adapt text to size dynamically
2022-04-03 23:22:45 +05:30
hrj
83b0eb069e
shadow text: dynamic kernel size
2022-04-03 23:09:45 +05:30
hrj
832053f6e9
minor, simplification
2022-04-03 23:01:40 +05:30
hrj
6480da09ff
helper setRenderingHints: set antialiasing on
2022-04-03 23:01:26 +05:30
hrj
23a6a43d2d
shadow text: simplify text drawing
2022-04-03 22:58:12 +05:30
hrj
7f77f819dd
popping characters: adjust height to size
2022-04-03 22:49:35 +05:30
hrj
444982e65f
added HelperFunctions.safeAlphaNum
2022-04-02 23:06:57 +05:30
hrj
4f3bec0bc6
each challenge provider now respects the size parameter when construction image
2022-03-01 23:03:43 +05:30
hrj
edd211fb52
respect size and level parameters
...
* Add size and level parameters to ChallengeProvider.returnChallenge()
* Add size column to challenge table
* Pass size and level parameters to all relevant calls
* Add size field to demo app
2022-03-01 22:51:38 +05:30
Rahul Rudragoudar
a0afba6fa5
Remove print stmts
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-09-02 14:54:20 +05:30
Rahul Rudragoudar
f83289514b
Rename DPISetter to PngImageWritter
...
Make fn static
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-09-01 22:57:26 +05:30
Rahul Rudragoudar
26d86bca4c
Set DPI for captcha providers
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-08-31 15:43:58 +05:30
Rahul Rudragoudar
d30249a89f
Add DPI setter
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-08-31 15:42:57 +05:30
hrj
1a41724fdc
popping characters captcha: don't show prev char for the first char
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-24 22:36:25 +05:30
hrj
e3241ff7ac
fix bug in randomNumber(min, max)
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-24 22:35:50 +05:30
Rahul Rudragoudar
1708347504
Remove seed member var
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-24 20:53:28 +05:30
Rahul Rudragoudar
04755c0a07
Add method to set seed
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-24 20:44:20 +05:30
Rahul Rudragoudar
0d33f51f9e
Move random number generator to HelperFunctions
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-24 19:36:48 +05:30
hrj
c362ed5cb0
renamed GifCaptcha to PoppingCharactersCaptcha
2021-04-19 17:26:09 +05:30
hrj
d81cf17a08
tune GifCaptcha: decrease character spacing, add jitter, slower frame rate
2021-04-19 17:17:24 +05:30
hrj
7ad164e3c2
GifCaptcha: show letters at different offsets
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-19 16:59:14 +05:30
hrj
d32d836475
Gif Captcha: Simplify code
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-19 15:26:03 +05:30
hrj
4335740bfc
remove O (Capital O) from set of safe alphabets
...
since it is easily confused with 0 (zero)
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-19 09:26:49 +05:30
hrj
32169dbe80
scala-fix changes
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-18 18:37:37 +05:30
hrj
55288d3346
use picoServe library
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-18 18:37:37 +05:30
hrj
d3a2c6fa35
Minor: use Map.of()
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-14 10:08:33 +05:30
hrj
b765399f68
debug captcha: use safe alphabets only
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
hrj
954399042c
debug catpcha: only use alphabets
...
Signed-off-by: hrj <harshad.rj@gmail.com>
2021-04-13 14:54:16 +05:30
Rahul Rudragoudar
4612dfa1cd
Migrate to HttpServer ( #76 )
...
* Migrate to Fibry
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Improve error handling
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update models and fields
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Enable fibry server
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update .gitignore
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Convert captcha class to object
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Rollback error handling
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Update models
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Migrate to sun http server
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Refactor: Linter and formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Remove redundant dependancy
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-11 17:57:15 +05:30
Rahul Rudragoudar
2c0f3deb8a
Add supportedParams method
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-11 21:23:24 +05:30
Rahul Rudragoudar
c00680f631
Add config method
...
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-02 21:32:45 +05:30
Rahul Rudragoudar
de50d8123e
Linter and Formatter support ( #58 )
...
* Add scala linter and formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add java formatter
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add linter support
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Increase maxColumn limit
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Reformat and lint
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Minor reformatting
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add scala formatter on compile option
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Enable scala linter for CI
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-25 23:49:39 +05:30
Rahul Rudragoudar
6d04cdc3b4
Refactor modules ( #56 )
...
* Refactor:Modules
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Add config file
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
* Restore sample images
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-24 15:21:16 +05:30
hrj
3d147950a4
prevent resource leak by using try-with-resource syntax
2020-07-03 22:20:30 +05:30
hrj
715b9e4206
set anti-aliasing
2019-06-08 11:21:13 +05:30
hrj
cf71757b5f
return correct content type
2019-06-08 11:07:06 +05:30
hrj
9c7efb5e4a
toString method for Challenge
2019-06-08 11:06:53 +05:30
hrj
80cf6b66fd
add attribution to gif sequence writer class
2019-03-31 19:03:22 +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
Prajwal Goudar
0fe1dd1ae4
made changes to checkCaptcha function
2019-03-13 10:08:17 +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
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
36aa8639fd
Added binary data support for response class
2018-12-17 13:38:31 +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