Skip to content
podcast.ae
AskDeveloper Podcast

EP47 - AskDeveloper Podcast - Cryptography - Part 2 - Encryption

Published 16 October 2016 · 1 hr 9 min

الحلقة السابقة soundcloud.com/askdeveloper/ep46-askdeveloper-podcast-crypto… ○ Encryption (Two Ways) § Symmetric Encryption □ Same key both encrypts and decrypts the data. □ Very fast, yet exchanging key is tricky □ Very Algorithmic □ Examples ® DES Data Encryption Standard (BROKEN) ◊ Uses key of 56 bit length ® Triple DES (3DES) ◊ Uses three keys (or two unique keys) of 56 bit each ® AES Advanced Encryption Standard ◊ Uses keys of 128, 192 or 256 bits long □ Attacks ® Brute force ◊ Usually mitigated via increasing key length, as difficulty increases exponentially as key size increases, for example time to crack given a modern super computer. Key Size Time To Crack 56 bits 399 seconds 128 bits 1.02 * 1018 years 192 bits 1.87 * 1037 years 256 bits 3.31 * 1056 years ◊ Side-Channel Attacks § Asymmetric Encryption □ Key pairs have mathematical relationship □ Each one can decrypt messages encrypted by the other. □ Slow, but exchanging key is trivial □ Very Mathematical □ Anyone can know the Public Key ® The Public key can only be used to encrypt data □ The Private key is kept secret, and never leaves the recipient's side. ® The Private key can only be used to decrypt data □ Examples ® RSA (Rivest, Shamir and Adelman) ® The de-facto standard in the industry ® Public and Private keys are based on large Prime Numbers § Hybrid Encryption □ Uses both Symmetric and Asymmetric encryption at the same time. □ Goals: ® Use the performance of Symmetric Crypto ® Convenience of sharing keys using Asymmetric Crypto ® HMAC for authentication. □ Steps: (Order is very important) ® Party 1 (Alice) 1. Generates a random AES Session Key (32 bytes / 256 bits) 2. Generates a random Initialization Vector (IV) (16 bytes / 128 bits) 3. Encrypt the message to be sent using the AES Session Key & IV 4. Calculate an HMAC of the encrypted message using the AES Session key 5. Encrypt the AES Session Key using the Public Key of Party 2 (Bob) The recipient. 6. Sends a packet of (Encrypted Message, Encrypted Session Key, Initialization Vector, and HMAC) to Bob ® Party 2 (Bob) 1. Decrypts Session key using his Private Key 2. Recalculates the HMAC of the encrypted message (Validates message integrity) } If HMAC check pass – Decrypts the message using the decrypted AES Session Key and Initialization Vector } Otherwise, rejects the message because of integrity check failure. Our facebook Page facebook.com/askdeveloper On Sound Cloud soundcloud.com/askdeveloper Please Like & Subscribe

More episodes

EP96 - ايه أخبار ال Product Management في عصر ال AI مع مروة عبد الدايم

لما تنفيذ الأفكار يبقى أسرع بالـ AI، هل اختيار اللي يستاهل يتبني بيبقى أسهل؟ في الحلقة دي من AskDeveloper Podcast، محمد الشريف بيستضيف مروة عبد الدايم من جديد لمناقشة التغيير في إدارة المنتجات، من واقع تجربتها في…

New18 hours ago· 1 hr 25 min

EP95 - AskDeveloper Podcast - Systems, AI and Careers with Khaled Henidak

يستضيف محمد الشريف خالد حنيدق في عودة إلى AskDeveloper Podcast، للحديث عن رحلته في مايكروسوفت وصولًا إلى منصب نائب رئيس، وما تعلّمه من بناء أنظمة تعمل على نطاق واسع. يروي خالد تجربته في تصميم البنية التحتية والشبكات…

8 Nov· 1 hr 43 min

EP94 - AskDeveloper Podcast - كيف تصل الانترنت لآخر 2 مليار شخص في العالم - مع سامر الصالحي

لقاءنا اليوم حنتكلم عن تحديات توصيل خدمات الانترنت لكل الناس على كوكب الأرض, و ازاي تقنيات زي الانترنت الفضائي تقدر تساعدنا اننا نوصلهم ضيفي اليوم المهندس سامر الصالحي Samer Salhi is an experienced technology…

8 Jan 2025· 1 hr 36 min

EP92 - AskDeveloper Podcast - من السيرفر الى السحابة - حنجيب سيرة قواعد البيانات مع أحمد عياد

لو خطر في بالك قبل كده ليه عندنا كل قواعد البيانات دي, و ليه فيه منهم انواع مختلفة DBMS, NOSQL و غيرهم, طيب الناس اللي بتشتغل على الحاجات دي ايه التحديات اللي بيواجهوها, و ايه التخصص ده و ايه المتطلبات بتاعته. Ahmed…

17 Nov 2024· 1 hr 21 min

EP84 - Ask Developer Podcast - ازاي توصل للشركات العالمية مع منارة

منارة هي أكبر مجتمع لمهندسي البرمجة في الشرق الاوسط و منصة متخصصة لتدريب المبرمجين على انهم ينجحوا في انترفيوهات أكبر شركات التقنية العالمية ي جوجل و ميتا و امازون و غيرهم. للتقديم: https://bit.ly/4eAYGOM Objective:…

22 Oct 2024· 52 min
All episodes