Class TOlfRandomIDGenerator
Unit
Declaration
type TOlfRandomIDGenerator = class(TObject)
Description
This item has no description.
Hierarchy
- TObject
- TOlfRandomIDGenerator
Overview
Methods
| Public | class function getID(const Base: Byte; const ASize: Cardinal = 0): string; |
| Public | class function getIDBase2(const Size: Cardinal = 0): string; |
| Public | class function getIDBase10(const Size: Cardinal = 0): string; |
| Public | class function getIDBase36(const Size: Cardinal = 0): string; |
| Public | class function getIDBase62(const Size: Cardinal = 0): string; |
| Public | class function getPassword(const Numbers, LowerCaseLetters, UpperCaseLetters: Boolean; const Symbols: TArray < Char >= []; const ASize: Cardinal = 0): string; overload; |
| Public | class function getPassword(const Numbers, LowerCaseLetters, UpperCaseLetters: Boolean; const Symbols: string = ''; const ASize: Cardinal = 0): string; overload; |
| Public | class procedure SetDefaultSize(const Size: Cardinal); |
Description
Methods
| Public | class function getID(const Base: Byte; const ASize: Cardinal = 0): string; |
|
( Generate a string composed by a random list of chars (0..9 -> numbers, 0..35 -> numbers + lowercased letters ('a'-'z'), 0 ..61 -> numbers and letters ('a'-'z' and 'A'-'Z') ) | |
| Public | class function getIDBase2(const Size: Cardinal = 0): string; |
|
Generate a string with random numbers between '0' and '1' | |
| Public | class function getIDBase10(const Size: Cardinal = 0): string; |
|
Generate a string with random numbers between '0' and '9' | |
| Public | class function getIDBase36(const Size: Cardinal = 0): string; |
|
Generate a string with random numbers between '0' and '9' or letters between 'a' and 'z' | |
| Public | class function getIDBase62(const Size: Cardinal = 0): string; |
|
Generate a string with random numbers between '0' and '9' or letters between 'a' and 'z' or 'A' and 'Z' | |
| Public | class function getPassword(const Numbers, LowerCaseLetters, UpperCaseLetters: Boolean; const Symbols: TArray < Char >= []; const ASize: Cardinal = 0): string; overload; |
|
Generate a string like a password with different elements in it | |
| Public | class function getPassword(const Numbers, LowerCaseLetters, UpperCaseLetters: Boolean; const Symbols: string = ''; const ASize: Cardinal = 0): string; overload; |
|
Generate a string like a password with different elements in it | |
| Public | class procedure SetDefaultSize(const Size: Cardinal); |
|
Set the default size used by other methods of this class when no size is given when generating an ID. | |
Generated by PasDoc 1.0.4.