informatique:crypto
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:crypto [05/08/2023 08:28] – typo cyrille | informatique:crypto [06/08/2023 14:40] (Version actuelle) – [Cryptographie] cyrille | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| * [[http:// | * [[http:// | ||
| + | * Php & openssl benchmark https:// | ||
| * RSA: [[/ | * RSA: [[/ | ||
| - | * DSA: [[/ | + | * DSA: [[/ |
| * Schnorr: [[/ | * Schnorr: [[/ | ||
| * [[/ | * [[/ | ||
| * [[/ | * [[/ | ||
| - | Comparaison des longueurs de clés entre algo symétriques et asymétriques: | + | For asymmetric encryption, use elliptical curve cryptography (ECC) with a secure curve such as Curve25519 as a preferred algorithm. If ECC is not available and RSA must be used, then ensure that the key is at least 2048 bits. Lire plus sur [[https:// |
| + | Comparaison des longueurs de clés entre algo symétriques et asymétriques: | ||
| ^ Symmetric key algorithm ^ Comparable RSA key length ^ Comparable hash function ^ Bits of security ^ | ^ Symmetric key algorithm ^ Comparable RSA key length ^ Comparable hash function ^ Bits of security ^ | ||
| | 2TDEA* | | | 2TDEA* | | ||
| Ligne 19: | Ligne 21: | ||
| Logarithme discret: Digital Signature Algorithm (DSA), Schnorr, ElGamal. | Logarithme discret: Digital Signature Algorithm (DSA), Schnorr, ElGamal. | ||
| + | |||
| + | **Recommandations: | ||
| + | * Utiliser un algorithme reconnu et sûr selon la [[https:// | ||
| + | * SHA-256, SHA-512 ou SHA-3 comme fonction de hachage ; | ||
| + | * HMAC utilisant SHA-256, bcrypt, scrypt ou PBKDF2 pour stocker les mots de passe; | ||
| + | * AES ou AES-CBC pour le chiffrement symétrique ; | ||
| + | * clé >= 128 bits | ||
| + | * RSA-OAEP comme défini dans PKCS#1 v2.1 pour le chiffrement asymétrique ; | ||
| + | * clés >= 2048 bits | ||
| + | * enfin, pour les signatures, RSA-SSA-PSS comme spécifié dans PKCS#1 v2.1. | ||
| + | * Préférer un mode opératoire avec authentification | ||
| + | * AES-GCM : Le mode [[https:// | ||
| + | * AES-CBC-MAC | ||
| + | |||
| + | Outil qui présente les recommandations de différentes organisations internationales: | ||
| ===== Tools ===== | ===== Tools ===== | ||
| Ligne 35: | Ligne 52: | ||
| ==== Libraries ==== | ==== Libraries ==== | ||
| + | |||
| + | === Web Crypto API === | ||
| + | |||
| + | Implémente 4 algorithmes: | ||
| + | * Asymétrique | ||
| + | * RSA OAEP (Optimal Asymmetric Encryption Padding) | ||
| + | * Symétrique | ||
| + | * AES-CTR (Counter Mode) | ||
| + | * AES-CBC (Cipher Block Chaining) | ||
| + | * AES-GCM (Galois/ | ||
| + | * **GCM is an " | ||
| + | * ECDSA, HMAC ??? pas dans le sommaire mais trouvé sur certaines pages. | ||
| + | |||
| + | **Ne fonctionne pas en HTTP**, seulement en HTTPS. | ||
| + | |||
| + | Web Crypto API [[https:// | ||
| + | |||
| + | Implémentation en Vanilla JS: | ||
| + | * https:// | ||
| + | * lire "Known issues" | ||
| === Javascript Crypto Library === | === Javascript Crypto Library === | ||
| Ligne 54: | Ligne 91: | ||
| BigInteger & RSA | BigInteger & RSA | ||
| + | === CryptoJS === | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| === DigitalBazaar === | === DigitalBazaar === | ||
| Ligne 61: | Ligne 103: | ||
| - | ==== Preferred Encryption and Password Protection - 2005 Member Choice ==== | + | ==== (en vrac) Preferred Encryption and Password Protection - 2005 Member Choice ==== |
| http:// | http:// | ||
informatique/crypto.1691216906.txt.gz · Dernière modification : de cyrille
