| Package | com.whirled.contrib.hackproof |
| Class | public class HPInt |
| Inheritance | HPInt flash.events.EventDispatcher |
Also, HPInts will not have all of their parts garbage collected, so if a large number of them are used in a program, memory leakage will occur. If you need to use HPInts in disposable objects, it is recommended that you use the HPReuseManager to allocate and deallocate HPInts as needed.
Here's how HPInt works:
The value is actually stored as the difference of two
numbers, one of which is generated randomly. As a result,
the stored value will not appear in memory anywhere.
It also stores a checksum in a separate location.
| Property | Defined by | ||
|---|---|---|---|
| value : int Contains the integer value.
| HPInt | ||
| Method | Defined by | ||
|---|---|---|---|
|
HPInt()
Creates a new HPInt with the default value of 0.
| HPInt | ||
|
checkIntegrity():Boolean
Although each HPInt is checked each time it is read or
written, this function can be used to check that it hasn't
been modified at other times.
| HPInt | ||
|
verifyAll():Boolean
[static] Used to verify the master checksum for HPInt.
| HPInt | ||
| value | property |
value:int [read-write]Contains the integer value.
Implementation public function get value():int
public function set value(value:int):void
| HPInt | () | constructor |
public function HPInt()Creates a new HPInt with the default value of 0.
| checkIntegrity | () | method |
public function checkIntegrity():BooleanAlthough each HPInt is checked each time it is read or written, this function can be used to check that it hasn't been modified at other times. Calling this is never necessary.
ReturnsBoolean |
| verifyAll | () | method |
public static function verifyAll():BooleanUsed to verify the master checksum for HPInt. This should be called every once and a while if you want to be certain that freezing attacks are not occuring.
ReturnsBoolean |