SDK reference · Rails

ap2Hash

ap2Hash in @provenanceauth/rails/ap2, Rails. Base64url(hash(ascii value)), the way AP2 and SD-JWT hash strings.

Signature

ap2Hash(value: string, sdAlg?: string): string

Parameters

valuestringRequired
sdAlgstring

Returns

string

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.