Y
Y
yiiBoy2014-05-14 14:46:46
OpenSSL
yiiBoy, 2014-05-14 14:46:46

How to create an odd length file signature using CAPICOM + JS?

Knowledgeable people help. I have been unsuccessfully looking for a solution for several months.
When creating a signature using CAPICOM + JS, the signed data is converted to UNICODE (a feature of CAPICOM).
That is, when signing a file of 5 bytes, it is converted into a string of 6 bytes and after that a signature is made.
Accordingly, an attempt to verify the source file and the resulting signature (on the server side using openssl) fails.
If I sign a file of even length, then the check is successful.
What are the ways to solve this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question