No video

Asymmetric Encryption and Decryption in .NET Core using RSA Public/Private Key Pairs

  Рет қаралды 14,926

Techno Saviour

Techno Saviour

Күн бұрын

#.net #core #.netcore #asymmetricencryption #piblicprivatekey
Learn how to do encryption using public key and decryption using the private key in Nodejs
This is a code walkthrough. to understand why and when to use RSA please watch the previous video in the playlist.
Amazon Link: amzn.to/36pZN09
Visual studio code: code.visualstu...
Code Link: github.com/luc...
Check out the playlist about RSA
• RSA

Пікірлер: 29
@davidpin7
@davidpin7 3 жыл бұрын
Thanks i was stuck in the Decryption and this really helpted me
@AnujSharmaCoy
@AnujSharmaCoy 2 жыл бұрын
Same here. He is a life saver.
@adrianburgosriascos7429
@adrianburgosriascos7429 28 күн бұрын
Thanks, you saved me!
@anithakandimalla9283
@anithakandimalla9283 2 ай бұрын
Thanks alot you saved me
@YudnerParedes
@YudnerParedes 2 жыл бұрын
Hello, thanks for your contribution. Question, can the key be used directly as a string and not as a .pem file?
@mercymaina1355
@mercymaina1355 3 жыл бұрын
hello, i get Message=Unable to cast object of type 'Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters' to type 'Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair'. kindly help
@ekwonwahenry6886
@ekwonwahenry6886 3 жыл бұрын
Hi.. getting the same error, where you able to get a fix for this?.. thank you
@csdevguy184
@csdevguy184 Жыл бұрын
'Bad length' exception thrown when encrypting larger text. This cud b the limitation of RSA. Pls suggest any alternative approach. Also make a video on how to encrypt JSON/serialized data.
@QuickZ_
@QuickZ_ 2 жыл бұрын
you said you used the public key for encryption and the private key for decryption. But you mean the other way around right? :)
@TechnoSaviour
@TechnoSaviour 2 жыл бұрын
It's the correct sequence Public key is exposed so it's only used for encryption but until you have the private key you can't read the plain text.
@user-fq4ct8oz9s
@user-fq4ct8oz9s 9 ай бұрын
What can you do when you are getting an error that says "Bad Length" at the point of encrypting?
@TheMubeenyou
@TheMubeenyou 3 жыл бұрын
What is EnctyptionResponse
@microtech2448
@microtech2448 Жыл бұрын
How can you make it independent of the private key at the server end? Is it possible to generate a private key at every user end as soon as the user opens the chat window at his end so that it behaves like end to end encryption?
@learningtocode4261
@learningtocode4261 3 жыл бұрын
can you tell me how to store the string in the public key variable and use the key to decrypt/encrypt the text
@padmanathanramasamy8354
@padmanathanramasamy8354 8 ай бұрын
Can you share the steps of creating private and public key using open SSL
@TechnoSaviour
@TechnoSaviour 8 ай бұрын
I have already shared a videos, please check the playlist
@belghoulbilal8794
@belghoulbilal8794 Жыл бұрын
good tuto, why did not share full code of the project ?
@manjunaika1993
@manjunaika1993 3 жыл бұрын
can you make a video on creating a JWT Token using RSA Public/Private Keys
@Unknown_Eugene
@Unknown_Eugene 2 жыл бұрын
will it work on other OS? Or it is just for windows?
@vikasshelake6321
@vikasshelake6321 4 жыл бұрын
when you going to post your next video on client side cryptography, im waiting for it.
@TechnoSaviour
@TechnoSaviour 4 жыл бұрын
Video is not available - kzfaq.info/get/bejne/qK6Pmb1lv9HcmZc.html
@orney21d
@orney21d 3 жыл бұрын
Hi, before all, thanks for sharing. I guess this method works cross-platform for RSA asymmetric encryption/decryption right??. I heard some issues against some SPC for Windows against Linux ... Thanks .
@orney21d
@orney21d 3 жыл бұрын
Also , for instance if I use in the helper RSA instead RSACryptoServiceProvider through RSA csp = RSA.Create(rsaParams); and then for encrypt / decrypt using the code below : RSAEncryptionPadding oaepsha256 = RSAEncryptionPadding.OaepSHA256; var encryptedBytes = _publicKey.Encrypt(Encoding.UTF8.GetBytes(text), oaepsha256); Do you think this approach would cause less issues if we need to support multiplatform (Linux-Windows).... Cheers!
@andinofaturahman3649
@andinofaturahman3649 3 жыл бұрын
Where is the ".pem" came from ?
@TechnoSaviour
@TechnoSaviour 3 жыл бұрын
Generated using openssl kzfaq.info/get/bejne/n66SZtF32eCqn5c.html
@nikhilthambi1662
@nikhilthambi1662 2 жыл бұрын
can I use public key for decryption?
@TechnoSaviour
@TechnoSaviour 2 жыл бұрын
No
@learnWithYas
@learnWithYas 2 жыл бұрын
Sir what does the script EncryptionResponse.cs contain ?
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 47 МЛН
Clean Architecture with ASP.NET Core 6
29:58
dotnet
Рет қаралды 387 М.
Custom HTTPS Dev Environment using .NET Core, Kestrel & certificates
1:01:33
Asymmetric Encryption - Simply explained
4:40
Simply Explained
Рет қаралды 1,3 МЛН
Clean ASP.NET Core API using MediatR and CQRS | Setup
22:39
Nick Chapsas
Рет қаралды 321 М.
Cryptography 101 with .NET Core
29:12
Microsoft Visual Studio
Рет қаралды 35 М.