StringFingerprint

Family: Cipher · 5 forms

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) → string
2
StringFingerprint(string string, algorithm integer, bits integer) → string
3
StringFingerprint(string string, algorithm integer, bits integer, format integer) → string
4
StringFingerprint(string string, algorithm integer, bits integer, format integer, hmacKey string) → string
5
StringFingerprint(string string, algorithm integer, bits integer, format integer, hmacKey string, hmacKeyFormat integer) → string

Parameters

NameTypeIn forms
stringstringall
algorithmintegerall
bitsinteger2, 3, 4, 5
formatinteger3, 4, 5
hmacKeystring4, 5
hmacKeyFormatinteger5

Every form returns

string

Example · generated

Form 1, the short one

DO  Print(StringFingerprint("hello", 1))  Sync()LOOP

Form 5, with every argument

DO  Print(StringFingerprint("hello", 1, 1, 1, "score", 1))  Sync()LOOP

StringFingerprint 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.

2 commands in Cipher