aws / aws/aws-encryption-sdk-python
Base64 error messaging in version and type verification
- Langage dominant
- Python
- Étoiles
- 255
- Forks
- 92
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 2
Description
When the `version` and `type` elements of the AWS Encryption Message format are verified,
the error message should be customized if the `version` and `type` match the base64 value.
This is convent sugar for a common problem.
Valid blobs will have the first 2 bytes will be: `0x01`, `0x80`.
If the blob is base64-encoded, the values will be `0x41`, `0x59`.
https://github.com/awslabs/aws-encryption-sdk-javascript/pull/217
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by locating the version and type verification path for AWS Encryption Message blobs and read how validation errors are currently constructed. Use the stated byte values to distinguish raw from base64-encoded input, then verify that the resulting error identifies the likely encoding without changing valid-blob handling.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, python
- Domaine
- security
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100