mdn/content

Precise max length for encoding algorithm

Open

#18.045 aperta il 6 lug 2022

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Markdown (22.427 fork)batch import
Content:WebAPIarea: Web Cryptohelp wanted

Metriche repository

Star
 (8900 star)
Metriche merge PR
 (Merge medio 7g 3h) (147 PR mergiate in 30 g)

Descrizione

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt

What specific section or headline is this issue about?

Supported Algorithm

What information was incorrect, unhelpful, or incomplete?

This page is missing information about the algorithm we can use. For example, for the RSA-OAEP there is a limit in the number of bytes you can encrypt. I did not check for the others algorithm but theses limitation are missing in the doc. Just a warning that says "The algorithm can have some limitation such as the size of the data to encode. Check the RFC for more information" would be really helpfull since the error message are basically inexistent at this point in time.

What did you expect to see?

An array with what an algorithm can encode and the limitation

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Guida contributor