{"id":464087,"date":"2020-01-07T09:36:19","date_gmt":"2020-01-07T09:36:19","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=463959\/"},"modified":"2022-07-14T10:50:23","modified_gmt":"2022-07-14T10:50:23","slug":"comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/","title":{"rendered":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#8217;application Web ASP.Net&nbsp;?"},"content":{"rendered":"<p><html lang=\"fr\"><head><meta charset=\"utf-8\"><\/head><body><\/p>\n<p style=\"text-align: justify;\">Dans ce chiffrement, nous allons utiliser une cl\u00e9 secr\u00e8te pour chiffrer la cha\u00eene. L&#8217;algorithme utilis\u00e9 sera AES avec le mode CBC (Cipher Block Chaining).<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Padding.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-816657 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Padding.jpeg\" alt=\"rembourrage\" width=\"760\" height=\"380\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Padding.jpeg 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/Padding-300x150.jpeg 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Le code C# utilisera le rembourrage PKCS7, car PKCS5 n&#8217;y est pas disponible. Dans Android, il utilise le rembourrage PKCS5 en interne, m\u00eame si nous sp\u00e9cifions le rembourrage PKCS7 dans la transformation de chiffrement. Nous sp\u00e9cifions donc \u00e9galement le mode de remplissage PKCS5. Lorsqu&#8217;ils sont test\u00e9s, ils produisent tous les deux les m\u00eames r\u00e9sultats corrects.<\/p>\n<p style=\"text-align: justify;\">Dans cette m\u00e9thode de chiffrement, une cl\u00e9 unique est utilis\u00e9e \u00e0 la fois pour la cl\u00e9 secr\u00e8te et le sel.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/encryption-method.jpeg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-816655 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/encryption-method.jpeg\" alt=\"m\u00e9thode de chiffrement\" width=\"760\" height=\"380\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/encryption-method.jpeg 760w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/encryption-method-300x150.jpeg 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/a><\/p>\n<p style=\"text-align: justify;\">Lors de l&#8217;utilisation de cl\u00e9s diff\u00e9rentes pour la cl\u00e9 secr\u00e8te et le sel, il y avait une certaine diff\u00e9rence entre les versions encod\u00e9es en Base64 du sel (ou vecteur d&#8217;initialisation). Les versions encod\u00e9es en Base64 ont \u00e9t\u00e9 cr\u00e9\u00e9es par les codes Android et C#, et elles \u00e9taient diff\u00e9rentes les unes des autres.<\/p>\n<h2 style=\"text-align: justify;\">Pour surmonter cela, nous avons utilis\u00e9 une cl\u00e9 unique qui servira \u00e0 la fois de cl\u00e9 secr\u00e8te et de sel.<\/h2>\n<h3 style=\"text-align: justify;\">Le code pour la partie Android est le suivant :<\/h3>\n<pre class=\"brush: actionscript3; gutter: true\">public class EncryptionUtils { cha\u00eene finale priv\u00e9e characterEncoding = \"UTF-8\"&nbsp;; cha\u00eene finale priv\u00e9e cipherTransformation = \"AES\/CBC\/PKCS5Padding\"&nbsp;; Cha\u00eene finale priv\u00e9e aesEncryptionAlgorithm = \"AES\"&nbsp;; public String encrypt(String plainText, String key) lance UnsupportedEncodingException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException { byte [] plainTextbytes = plainText.getBytes(characterEncoding); octet [] keyBytes = getKeyBytes(cl\u00e9); \/\/ renvoie Base64.encodeToString(encrypt(plainTextbytes,keyBytes, keyBytes), Base64.DEFAULT); return Base64.encodeToString(encrypt(plainTextbytes,keyBytes, keyBytes), Base64.NO_WRAP); } cha\u00eene publique d\u00e9chiffrer (cha\u00eene texte crypt\u00e9, cl\u00e9 de cha\u00eene) lance KeyException, GeneralSecurityException, GeneralSecurityException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException { byte [] cipheredBytes = Base64.decode(encryptedText, Base64.DEFAULT); octet[] keyBytes = getKeyBytes(cl\u00e9); renvoie une nouvelle cha\u00eene (d\u00e9crypter (cipheredBytes, keyBytes, keyBytes), characterEncoding); } public byte [] decrypt( byte[] cipherText, byte[] key, byte [] initialVector) lance NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException { Cipher cipher = Cipher.getInstance(cipherTransformation); SecretKeySpec secretKeySpecy = new SecretKeySpec(key, aesEncryptionAlgorithm); IvParameterSpec ivParameterSpec = new IvParameterSpec(initialVector); cipher.init(Cipher.DECRYPT_MODE, secretKeySpecy, ivParameterSpec); cipherText = cipher.doFinal(cipherText); renvoie le texte chiffr\u00e9&nbsp;; } public byte[] encrypt(byte[] plainText, byte[] key, byte [] initialVector) lance NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException { Cipher cipher = Cipher.getInstance(cipherTransformation); SecretKeySpec secretKeySpec = new SecretKeySpec(cl\u00e9, aesEncryptionAlgorithm); IvParameterSpec ivParameterSpec = new IvParameterSpec(initialVector); cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); plainText = cipher.doFinal(plainText); retourner plainText&nbsp;; } private byte[] getKeyBytes(String key) lance UnsupportedEncodingException{ byte [] keyBytes= new byte[16]&nbsp;; octet [] parameterKeyBytes= key.getBytes(characterEncoding); System .arraycopy(parameterKeyBytes, 0 , keyBytes, 0, Math.min(parameterKeyBytes.length, keyBytes.length)); retourner keyBytes&nbsp;; } } Lecture recommand\u00e9e&nbsp;: Copier dans le presse-papiers en JavaScript<\/pre>\n<h3 style=\"text-align: justify;\"><strong>Le code de la partie C# est le suivant&nbsp;:<\/strong><\/h3>\n<pre class=\"brush: actionscript3; gutter: true\">\/\/ Crypte le texte en clair \u00e0 l'aide d'une cl\u00e9 AES 128 bits et d'un chiffrement par bloc de cha\u00eene et renvoie une cha\u00eene encod\u00e9e en base64 public string Encrypt(String plainText, String key) { var plainBytes = Encoding.UTF8.GetBytes(plainText); return Convert.ToBase64String(Encrypt(plainBytes, GetRijndaelManaged(key))); } public string D\u00e9chiffrer (cha\u00eene texte crypt\u00e9, cl\u00e9 de cha\u00eene) { var octets crypt\u00e9s = Convert.FromBase64String (texte crypt\u00e9); return Encoding.UTF8.GetString(Decrypt(encryptedBytes, GetRijndaelManaged(key))); } public byte[] Encrypt(byte[] plainBytes, RijndaelManaged rijndaelManaged) { return rijndaelManaged.CreateEncryptor() .TransformFinalBlock(plainBytes, 0, plainBytes.Length); } public byte [] D\u00e9crypter (octet [] donn\u00e9es crypt\u00e9es, RijndaelManaged rijndaelManaged) { return rijndaelManaged.CreateDecryptor() .TransformFinalBlock (donn\u00e9es crypt\u00e9es, 0, donn\u00e9es crypt\u00e9es. Longueur); } public RijndaelManaged GetRijndaelManaged(String secretKey) { var keyBytes = new byte[16]; var secretKeyBytes = Encoding.UTF8.GetBytes(secretKey); Array.Copy(secretKeyBytes, keyBytes, Math.Min(keyBytes.Length, secretKeyBytes.Length)); return new RijndaelManaged { Mode = CipherMode.CBC, Padding = PaddingMode.PKCS7, KeySize = 128, BlockSize = 128, Key = keyBytes, IV = keyBytes }&nbsp;; }<\/pre>\n<p style=\"text-align: justify;\">Avec l&#8217;aide du code ci-dessus, on peut crypter une cha\u00eene sur une plate-forme, puis la d\u00e9crypter sur l&#8217;autre plate-forme, et vice-versa.<\/p>\n<p style=\"text-align: justify;\" class=\"gt-block\"><strong>Lecture recommand\u00e9e:<\/strong> ,war<a href=\"https:\/\/www.knowband.com\/blog\/tips\/see-code-ctp-file-colorful-php-file-netbeans\/\">Comment voir le code du fichier &#8216;.ctp&#8217; aussi color\u00e9 que le fichier &#8216;.php&#8217; dans NetBeans<\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/XIYd7u3h574\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dans ce chiffrement, nous allons utiliser une cl\u00e9 secr\u00e8te pour chiffrer la cha\u00eene. L&#8217;algorithme utilis\u00e9 sera AES avec le mode CBC (Cipher Block Chaining). Le code C# utilisera le rembourrage PKCS7, car PKCS5 n&#8217;y est pas disponible. Dans Android, il utilise le rembourrage PKCS5 en interne, m\u00eame si nous sp\u00e9cifions le rembourrage PKCS7 dans la [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":816658,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[1120],"tags":[7520,19445,19441,19443,28309,19444,19442],"class_list":["post-464087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-conseils-fr","tag-android","tag-application-web-asp-net","tag-chiffrement","tag-cryptage-api","tag-dchiffrement-de-lapi","tag-dcryptage","tag-dcryptage-api"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#039;application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d\u00e9chiffrement-entre-android-et-lapplication-web-asp-net\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#039;application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Dans ce chiffrement, nous allons utiliser une cl\u00e9 secr\u00e8te pour chiffrer la cha\u00eene. L&#8217;algorithme utilis\u00e9 sera AES avec le mode CBC (Cipher Block Chaining). Le code C# utilisera le rembourrage PKCS7, car PKCS5 n&#8217;y est pas disponible. Dans Android, il utilise le rembourrage PKCS5 en interne, m\u00eame si nous sp\u00e9cifions le rembourrage PKCS7 dans la [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d\u00e9chiffrement-entre-android-et-lapplication-web-asp-net\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-07T09:36:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-14T10:50:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ajay Taneja\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ajay Taneja\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/\"},\"author\":{\"name\":\"Ajay Taneja\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/091fe95729cba0da363b4fd2a784a893\"},\"headline\":\"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#8217;application Web ASP.Net&nbsp;?\",\"datePublished\":\"2020-01-07T09:36:19+00:00\",\"dateModified\":\"2022-07-14T10:50:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/\"},\"wordCount\":273,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg\",\"keywords\":[\"Android\",\"Application Web ASP.Net\",\"Chiffrement\",\"cryptage api\",\"d\u00e9chiffrement de l'API\",\"d\u00e9cryptage\",\"d\u00e9cryptage api\"],\"articleSection\":[\"conseils\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/\",\"name\":\"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l'application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg\",\"datePublished\":\"2020-01-07T09:36:19+00:00\",\"dateModified\":\"2022-07-14T10:50:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg\",\"width\":760,\"height\":300,\"caption\":\"how-to-setup-encryption-and-decryption-between-android-and-asp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/conseils-fr\\\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#8217;application Web ASP.Net&nbsp;?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/091fe95729cba0da363b4fd2a784a893\",\"name\":\"Ajay Taneja\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"caption\":\"Ajay Taneja\"},\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/author\\\/ataneja\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l'application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d\u00e9chiffrement-entre-android-et-lapplication-web-asp-net\/","og_locale":"fr_FR","og_type":"article","og_title":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l'application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules","og_description":"Dans ce chiffrement, nous allons utiliser une cl\u00e9 secr\u00e8te pour chiffrer la cha\u00eene. L&#8217;algorithme utilis\u00e9 sera AES avec le mode CBC (Cipher Block Chaining). Le code C# utilisera le rembourrage PKCS7, car PKCS5 n&#8217;y est pas disponible. Dans Android, il utilise le rembourrage PKCS5 en interne, m\u00eame si nous sp\u00e9cifions le rembourrage PKCS7 dans la [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d\u00e9chiffrement-entre-android-et-lapplication-web-asp-net\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2020-01-07T09:36:19+00:00","article_modified_time":"2022-07-14T10:50:23+00:00","og_image":[{"width":760,"height":300,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg","type":"image\/jpeg"}],"author":"Ajay Taneja","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Ajay Taneja","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/"},"author":{"name":"Ajay Taneja","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/091fe95729cba0da363b4fd2a784a893"},"headline":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#8217;application Web ASP.Net&nbsp;?","datePublished":"2020-01-07T09:36:19+00:00","dateModified":"2022-07-14T10:50:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/"},"wordCount":273,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg","keywords":["Android","Application Web ASP.Net","Chiffrement","cryptage api","d\u00e9chiffrement de l'API","d\u00e9cryptage","d\u00e9cryptage api"],"articleSection":["conseils"],"inLanguage":"fr-FR"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/","url":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/","name":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l'application Web ASP.Net&nbsp;? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg","datePublished":"2020-01-07T09:36:19+00:00","dateModified":"2022-07-14T10:50:23+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2020\/01\/How-to-setup-Encryption-and-Decryption-between-Android-and-ASP.jpeg","width":760,"height":300,"caption":"how-to-setup-encryption-and-decryption-between-android-and-asp"},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/fr\/conseils-fr\/comment-configurer-le-chiffrement-et-le-d%c3%a9chiffrement-entre-android-et-lapplication-web-asp-net\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"Comment configurer le cryptage et le d\u00e9cryptage entre Android et l&#8217;application Web ASP.Net&nbsp;?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/091fe95729cba0da363b4fd2a784a893","name":"Ajay Taneja","image":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","url":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","caption":"Ajay Taneja"},"url":"https:\/\/www.knowband.com\/blog\/fr\/author\/ataneja\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/464087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/comments?post=464087"}],"version-history":[{"count":0,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/posts\/464087\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media\/816658"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/media?parent=464087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/categories?post=464087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/fr\/wp-json\/wp\/v2\/tags?post=464087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}