crypto module with binary files
MBMichel Banguerski29 Sep 2015 14:22 # Greetings all,
I would like to perform cryptographic operations with arbitrary binary files but am unable to figure how to convert the output of
file:read-binary() to something that could be processed by crypto:hmac() for example.
Can You give me a hint please?
TIA
Best regards
Michel
CGChristian Grün29 Sep 2015 14:51 # Hi Michel,
As the function only accepts strings as input, you can either explicitly cast your binary item to string – via xs:string($binary)… or contact the author of the module (Claudius Teodorescu) and issue a feature request.
HTH,
Christian
Quoted text · Michel Banguerski · 12 lines
On Tue, Sep 29, 2015 at 2:22 PM, Michel Banguerski <banguerski at gmail.com> wrote:
> Greetings all,
>
> I would like to perform cryptographic operations with arbitrary binary files
> but am unable to figure how to convert the output of file:read-binary() to
> something that could be processed by crypto:hmac() for example.
>
> Can You give me a hint please?
>
> TIA
> Best regards
> Michel
⚡Generated with XQuery