filmov
tv
ENCRYPT and DECRYPT a STRING in C# - PART TWO
![preview_player](https://i.ytimg.com/vi/Zv7Bi4_2re0/maxresdefault.jpg)
Показать описание
Learn How To ENCRYPT and DECRYPT a STRING in C# on VISUAL STUDIO, And also FIX "Padding is invalid and cannot be removed"
-------- S O L U T I O N S
✔️ Using AES encryption to decrypt a text with a KeyPhrase
✔️ Also Three Solution for "Padding is invalid and cannot be removed" error
1. Using a static key for encryption or decryption
2. Using same-casing-key for encryption and decryption
3. Manually Flush the final block and Close off the stream writer
-------- P A R T 1
💿 Encryption Procedure:
-------- P A R T 2
💿 Decryption Procedure: (Current Video)
-------- R E L A T E D L I N K S
------ 1
📡 Full Application On Google Drive
------ 2
📡 Full Application On GitHub
-------- P R E V I O U S V I D E O
⏮️ Encrypt a Text using AES
-------- C R E D I T S T O M U S I C
-------- S U B S C R I B E
❤️ DON'T forget to LIKE, COMMENT your IDEA, and SUBSCRIBE
-------- I N S T A G R A M
--------- C # D E V E L O P M E N T E P I S O D E 1 8 ---------
00:00 - Previously On How To
00:45 - Decryption Method and coding
03:29 - Encryption Salt definition
03:57 - Application Run and Decryption Test
04:32 - Padding is invalid and cannot be removed Origin
05:08 - FIX "Padding is invalid and cannot be removed" Solution One
05:25 - FIX "Padding is invalid and cannot be removed" Solution Two
05:56 - FIX "Padding is invalid and cannot be removed" Solution Three
06:24 - End Screen
--------- A B O U T S E C T I O N ---------
🙍 About Microsoft Visual Studio:
Visual Studio is an integrated development environment from Microsoft. It is used to develop computer programs including websites, web apps, web services and mobile apps
🙍 About C#:
C# is a general-purpose high-level programming language supporting multiple paradigms. C# encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented, and component-oriented programming disciplines.
🙍 About Cryptography:
Cryptography, or cryptology, is the practice and study of techniques for secure communication in the presence of adversarial behavior. More generally, cryptography is about constructing and analyzing protocols that prevent third parties or the public from reading private messages.
🙍 About IV (Initialization Vector)
In cryptography, an initialization vector (IV) or starting variable is an input to a cryptographic primitive being used to provide the initial state. The IV is typically required to be random or pseudorandom, but sometimes an IV only needs to be unpredictable or unique.
🙍 About Cryptographic Salt:
A cryptographic salt is made up of random bits added to each password instance before its hashing. Salts create unique passwords even in the instance of two users choosing the same passwords. Salts help us mitigate hash table attacks by forcing attackers to re-compute them using the salts for each user.
🙍 About Rfc2898DeriveBytes (.NET Class):
Implements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.
-------- S O L U T I O N S
✔️ Using AES encryption to decrypt a text with a KeyPhrase
✔️ Also Three Solution for "Padding is invalid and cannot be removed" error
1. Using a static key for encryption or decryption
2. Using same-casing-key for encryption and decryption
3. Manually Flush the final block and Close off the stream writer
-------- P A R T 1
💿 Encryption Procedure:
-------- P A R T 2
💿 Decryption Procedure: (Current Video)
-------- R E L A T E D L I N K S
------ 1
📡 Full Application On Google Drive
------ 2
📡 Full Application On GitHub
-------- P R E V I O U S V I D E O
⏮️ Encrypt a Text using AES
-------- C R E D I T S T O M U S I C
-------- S U B S C R I B E
❤️ DON'T forget to LIKE, COMMENT your IDEA, and SUBSCRIBE
-------- I N S T A G R A M
--------- C # D E V E L O P M E N T E P I S O D E 1 8 ---------
00:00 - Previously On How To
00:45 - Decryption Method and coding
03:29 - Encryption Salt definition
03:57 - Application Run and Decryption Test
04:32 - Padding is invalid and cannot be removed Origin
05:08 - FIX "Padding is invalid and cannot be removed" Solution One
05:25 - FIX "Padding is invalid and cannot be removed" Solution Two
05:56 - FIX "Padding is invalid and cannot be removed" Solution Three
06:24 - End Screen
--------- A B O U T S E C T I O N ---------
🙍 About Microsoft Visual Studio:
Visual Studio is an integrated development environment from Microsoft. It is used to develop computer programs including websites, web apps, web services and mobile apps
🙍 About C#:
C# is a general-purpose high-level programming language supporting multiple paradigms. C# encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented, and component-oriented programming disciplines.
🙍 About Cryptography:
Cryptography, or cryptology, is the practice and study of techniques for secure communication in the presence of adversarial behavior. More generally, cryptography is about constructing and analyzing protocols that prevent third parties or the public from reading private messages.
🙍 About IV (Initialization Vector)
In cryptography, an initialization vector (IV) or starting variable is an input to a cryptographic primitive being used to provide the initial state. The IV is typically required to be random or pseudorandom, but sometimes an IV only needs to be unpredictable or unique.
🙍 About Cryptographic Salt:
A cryptographic salt is made up of random bits added to each password instance before its hashing. Salts create unique passwords even in the instance of two users choosing the same passwords. Salts help us mitigate hash table attacks by forcing attackers to re-compute them using the salts for each user.
🙍 About Rfc2898DeriveBytes (.NET Class):
Implements password-based key derivation functionality, PBKDF2, by using a pseudo-random number generator based on HMACSHA1.
Комментарии