What it does
StringFingerprint takes string (a string) and algorithm (an integer), and answers a string. That is the first of 5 forms.
Syntax
1
StringFingerprint(string string, algorithm integer) → string2
StringFingerprint(string string, algorithm integer, bits integer) → string3
StringFingerprint(string string, algorithm integer, bits integer, format integer) → string4
StringFingerprint(string string, algorithm integer, bits integer, format integer, hmacKey string) → string5
StringFingerprint(string string, algorithm integer, bits integer, format integer, hmacKey string, hmacKeyFormat integer) → stringParameters
| Name | Type | In forms |
|---|---|---|
| string | string | all |
| algorithm | integer | all |
| bits | integer | 2, 3, 4, 5 |
| format | integer | 3, 4, 5 |
| hmacKey | string | 4, 5 |
| hmacKeyFormat | integer | 5 |
Every form returns
string
Example · generated
Form 1, the short one
DO Print(StringFingerprint("hello", 1)) Sync()LOOPForm 5, with every argument
DO Print(StringFingerprint("hello", 1, 1, 1, "score", 1)) Sync()LOOPStringFingerprint is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.