ZMSecurityUtils
public class ZMSecurityUtils
| Field Summary | |
|---|---|
| final str | Random type characters only. |
| final str | Random type digits only. |
| final str | Random type hexadecimal. |
| final str | Random type mixed (digits and characters). |
| Method Summary | |
|---|---|
| static string | random(int length, string type) Generate a random value. |
| static mixed | sanitize(mixed value) Sanitize a given value. |
public final str RANDOM_CHARS = 'chars'
Random type characters only.
public final str RANDOM_DIGITS = 'digits'
Random type digits only.
public final str RANDOM_HEX = 'hex'
Random type hexadecimal.
public final str RANDOM_MIXED = 'mixed'
Random type mixed (digits and characters).
public static string random(int length, string type)
Generate a random value.
public static mixed sanitize(mixed value)
Sanitize a given value.
Security utils..