Padloc Logo Docs & Resources

Module: randomart

Interfaces

Variables

defaults

Const defaults: Options

Default options

Defined in

core/src/randomart.ts:30

Functions

getValues

getValues(fingerprint, opts?): number[][]

Parameters

Name Type
fingerprint Uint8Array
opts Partial<Options>

Returns

number[][]

Defined in

core/src/randomart.ts:80


randomArt

randomArt(fingerprint, opts?): Fingerprint

Generates a visualisation of a "fingerprint" similar to the ascii-based visualization method used by OpenSSH. Generates a "heat map" of values on a grid of a given width and height using the "drunken bishop" algorithm desribed in this paper.

Parameters

Name Type
fingerprint Uint8Array
opts Partial<Options>

Returns

Fingerprint

Defined in

core/src/randomart.ts:115