staticfromHex(algorithm:String, hash:String):Null<Hash>
Create a new Hash from a hex string
Parameters:
algorithm
name per https://xmpp.org/extensions/xep-0300.html
hash
in hex format
Returns:
Hash or null on error
staticfromUri(uri:String):Null<Hash>
Create a new Hash from a ni:, cid: or similar URI
uri
The URI
finalalgorithm:String
Hash algorithm name
toBase64():String
Represent this Hash as a Base64 string
Base64-encoded string
toBase64Url():String
Represent this Hash as a Base64url string
Base64url-encoded string
toHex():String
Represent this Hash as a hex string
hex string
toUri():String
Represent this Hash as a URI
URI as a string