public class Captcha extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateImage(String text)
Generates a PNG image of text 180 pixels wide, 40 pixels high with white background.
|
static String |
generateText()
Generates a random alpha-numeric string of eight characters.
|
public static String generateText()
public static byte[] generateImage(String text)
text
- expects string size eight (8) characters.Copyright © 2020 JavaLite. All rights reserved.