Click here to Skip to main content
15,899,630 members
Everything / RSA

RSA

RSA

Great Reads

by Juan F. Paleo
Encrypt data with RSA Public Key
by Huzifa Terkawi
This article will aim to give you a brief and to point tutorial about DES modes , hash Functions , AES , RSA algorithms and example of their usage , using OpenSSL.
by Mark Vinod Sinnathamby
Issues in Generating RSA Key Pair for GitHub

Latest Articles

by Juan F. Paleo
Encrypt data with RSA Public Key
by Huzifa Terkawi
This article will aim to give you a brief and to point tutorial about DES modes , hash Functions , AES , RSA algorithms and example of their usage , using OpenSSL.
by Mark Vinod Sinnathamby
Issues in Generating RSA Key Pair for GitHub

All Articles

Sort by Score

RSA 

6 Mar 2016 by OriginalGriff
"This a homework And the teacher asked for this"And that means he wants your thoughts: not ours.We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify...
10 Dec 2015 by OriginalGriff
Do you have any idea how much work explaining code line by line is?Every single line needs a paragraph of explanation! For example: int next = r.Next();Create a new variable called "next" which can hold a integer value. From the previously declared Random instance "r", call...
26 May 2016 by KarstenK
My first hit is: CryptEncrypt when I google rsa encryption microsoft c++.I dont get that you havent found it...
29 Oct 2018 by Dave Kreskowiak
NEVER encrypt passwords. ALWAYS hash them instead. Salted Password Hashing - Doing it Right[^]
12 Aug 2020 by Juan F. Paleo
Encrypt data with RSA Public Key
23 Aug 2015 by paulortiz
Hi Guys,We are currently in the process of migrating our codes from Javascript to Swift with Objective C supported libraries. Our encryption algorithms was written using Javascript, and I found out that we are using ASN1 structures. I was wondering if any of you knows any ASN1 libraries that...
24 Aug 2015 by KarstenK
Swift isnt so wide spread now and here, so you better to Objective-C. My tip would be interesting approch to wrap OpenSSL into Xcode.The professional software from Chilkat has also Swift Example.Lastly I found that ASN1C on Github.I really would like to hear from you how you solve...
14 Sep 2015 by Rasoul Takalloo
Hello;I(server) use this code to decrypt text that sent by client.Text encrypted by publickey of server. class RSAcryption { private static bool _optimalAsymmetricEncryptionPadding = true; public static void GenerateKeys(int keySize, out string publicKey, out...
10 Dec 2015 by Sergey Alexandrovich Kryukov
Please see my comment to your comment to Solution 1.morris “mason” bonham asked:Maybe someone have done anything familiar and can share it…Look, for example, at this implementation: https://code.google.com/p/rsa[^].But don't expect explanation of the code. OriginalGriff and I...
10 Dec 2015 by Patrice T
Wrong question: so no possible solution here.If you need explanation about this code, I deduce that it is not your code. Why not ask the author ?Explanation of this code line by line is more about knowledge of the language and will never help you to understand the RSA cipher...
11 Dec 2015 by Aescleal
Does this line...cin >> message;...really do what you think it does?If you can work that one out then that's the root cause of the whole message not being encrypted.As for the other error perhaps have a dig through the code for ce() and cd() and work out what they're supposed to...
25 Feb 2016 by alfman79
I'm writing an RSA encryption code on vb.net using the RSACryptoServiceProvider class. You get the option to use pkcs v1.5 or OAEP padding but i can't understand if it's parameters can be shown or are accessible to edit. Is it possible to edit the parameter for the padded bytes and import...
12 Mar 2016 by HitsugayaHisagi
I was trying out the RSA encryption code, referring to some of the codes online, and I tried this var encryptedData = RSA.Encrypt(testDatabyte, publicKey)but error came out mentioning that System.Security.Cryptography.RSA does not contain definition for EncryptI am using .NET...
12 Mar 2016 by Garth J Lancaster
you dont show us how you instanciate your 'RSA' object - it needs to be of type RSACryptoServiceProvider I suggest you start here for a working example RSACryptoServiceProvider Class (System.Security.Cryptography)[^][edit] and please dont post the same question in more than one forum [/edit]
11 Apr 2016 by Kornfeld Eliyahu Peter
RSA[^] is RSA, not matter what bit size you choose...But it is better to use larger, probably the largest available (4096 today with public libraries), and in any case not less than 2048 (1024 bit was proved as breakable in 2003)...
30 Jun 2016 by Member 11960509
Hi AllI have generated public-private key pair(RSA 4096 bits) using puttygen and I am using this key in my C#.net code. Basically the idea behind generating these keys is to give the public key to the client and they would encrypt the file using this public key and put this file on a secured...
11 Feb 2017 by Member 12995193
Hey,can you help me? I want to encrypt text, when my private key is in the privat.xml file. My code doesn't work.Thank you so much for help and your time.What I have tried:private void button2_Click(object sender, EventArgs e) { // convert the string into byte array ...
11 Feb 2017 by Patrice T
Simple: privat.xml is not your key, it is an xml file that contain your key embedded in the xml structure.You have to read the file as an xml file and then get the key in the structure.
6 Apr 2017 by Renjith Kalarikkal
Dear All, Good Day, I am working on a SOAP Web Service, where i want to make soap message signing. i have done the Message signing using the rsa, but i need to create the signature based on RSA SHA256. When i am trying to import the key and perform the message signature, i want to get the...
27 Apr 2017 by RickZeeland
Not a code only solution, but you could try the Windows Signtool.exe. Here is an article about it where RSA is also mentioned: [5 Code Sign Examples]
9 May 2017 by Richard Deeming
Don't. Seriously, don't. What protection do you think this could possibly offer? If you're trying to stop someone eavesdropping on the communication with your site, get an SSL certificate. Not only will that automatically encrypt the communication between your server and the client, it will...
2 Aug 2017 by Levent Yağcıoğlu
Hello everyone, I wanna ask question about RSA sign on C#. I have one document for sign. I have plain hex values of modulus, private exponent and public exponent. I dont' t want to signing with random generated keys. When I try with sign with sign tool, i have got result perfectly. But i can'...
2 Aug 2017 by Thomas Daniels
You can create an RSAParameters instance: RSAParameters Structure (System.Security.Cryptography)[^] And then pass those in an RSACryptoServiceProvider[^]: RSAParameters parameters = new RSAParameters { D = ..., DP = ..., .... }; using (RSACryptoServiceProvider rsa = new...
14 Oct 2017 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action. Try it yourself, you may find it is...
19 Jan 2018 by Promis Patel
Hello, I am working on Thomson Reuters API integration for website. I have also referred their document and have done some R&D. I am able to generate Key-1, but not able to generate Key-2, Key-3 and Key-4. I am using C#. Can anybody please help me out? Sample code or link would be appreciated....
19 Jan 2018 by OriginalGriff
Ask the people who created it - they have a "developer community" of people who specifically work with the APIs: Design. Code. Build. Innovate. | DEVELOPER COMMUNITY[^] They will know more about it than we will.
13 Apr 2018 by Member 12666574
I have a web site uses RSA for encrypt some data. when i run it on local host, the RSA function works correctly. But after publishing my web site the function gives me an error. the function call is Cryptography encryptor = new Cryptography(); string pkpath = Server.MapPath("publickey.xml");...
23 Jul 2018 by OriginalGriff
Read the error message, it's pretty clear: Quote: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. That means exactly what is says - the string you are trying to convert from...
13 Aug 2018 by Member 8583441
I can't able to understand how the keys are getting from the rsa.toxmlstring method. For this i am seeing this website "rsa - Find the public and private keys using RSACryptoServiceProvider in c# - Stack Overflow[^]" to understand how to generate the keys but i can't please explain me clearly...
13 Aug 2018 by OriginalGriff
Quote: I can understand it is console application main method but where it has to be considered in web application i am asking To be honest, if you don;t understand that, then you shouldn't be playing with anything to do with security - this is basic stuff than any competent web developer has...
27 Nov 2018 by Zhivko Kabaivanov
I have mobile application that encrypts strings with RSA and sends that encrypted data to PHP web server. After a search I found that phpseclib is used to decrypt RSA Latest version 2.0. No matter what I do I receive despite error despite used mode Am i doing something wrong? What I have...
14 Dec 2018 by Ariel Quiroz
I found several solutions where I can use the RSA Provider to Encrypt a message with the public key and Decrypt it with the private one. But what I want to have is to Encrypt with the private key and Decrypt with the public key. I want to store the public key in my app and encrypt a license...
14 Dec 2018 by OriginalGriff
It's not supposed to work that way: the public key isn't safe if it's inside your app, because anyone who has access to the app can get the public key from that! See here: cryptography - Can one encrypt with a private key/decrypt with a public key? - Stack Overflow[^]
31 Jul 2019 by Danny96
I have the C# code that does encryption with RSA algorithm but I want to give my own p and q, when I try to give for instance; p=11 q=5 manually. When I try to set my values manually inside Create() method, it gives me error at ModInverse() saying System.ArgumentException: 'a is not...
17 Oct 2019 by Manoj Chamikara
Hi All I have to do update APS.Net MVC System someones did long time ago. there is a problem to run page while debugging web.config file section called appSecureSection. that developer leave the company long time ago and cannot to contact him Is there is any way to do this ? Thanks In...
19 Apr 2022 by kandy 2022
suppose you ask user to generate public_key using JPasswordField and then you should take this public_key to encrypt random_key what should I do? What I have tried: public void AESEncryption(File file) throws FileNotFoundException,...
8 Aug 2022 by Gerry Schmitz
Re: Windows Security Smart Card popup Redirecting[^]
6 Aug 2015 by Huzifa Terkawi
This article will aim to give you a brief and to point tutorial about DES modes , hash Functions , AES , RSA algorithms and example of their usage , using OpenSSL.
12 Dec 2017 by OriginalGriff
We aren't here to do your work for you: and if you have code that works but isn't for your environment, then it's important that you understand the code enough to transfer it to your new environment. We aren't here to explain someone else's code to you: we don't have time to write line by line...
24 Feb 2011 by Mark Vinod Sinnathamby
Issues in Generating RSA Key Pair for GitHub
10 Dec 2015 by morris “mason” bonham
This code should encrypt and decrypt text with RSA cipher. If I have spaces in text for encryption, then it doesn't encrypt words after space. Also it doesn't show possible values of e & d.#include...
26 May 2016 by Member 11346124
RSA Public Private Key Encryption Algorithm Implementation Source code in C or C++ example on HTTP or HTTPS or FTP Reference or Guide Line or Youtube video. Highly Appreciated. No External Dynamic Link Library. No external Library except Library provided by Microsoft. I have done AES...
11 Apr 2016 by Toni Andika
RSA algorithm:1. Select two different prime numbers p and q. For security aim, the integer's p and q must be large.2. Calculate n = p * qn will be used as the module for public key and private key and n is also known as key_component.3. Calculate f(n) = (q-1)(p-1), where f is a function...
9 Sep 2015 by Member 10693183
What can be achieved to this encrypted format?My android app send encrypted messages to the c# server but server want encrypted messages actually like this unknown formatchinese words.筊맲躥慢૬䣍毤_箬첑�沆ň䇷㨡鬩But android encrypt messages like this format...
27 Apr 2017 by Alex2 101
I want to sign a file using RSA algorithm and verify the signature Below are the scenarios: 1. Outward files will be put in a folder 3. We need to sign the file with a digital signature (using RSA 256) and send to Central Bank. 4. We need to download the response and verify the signature...
9 May 2017 by Member 13084135
I need to make RSA encryption by javascript for the user login password that sent from the login page in web application to the server to be decrypted by C# library provided by http://www.bouncycastle.org/csharp. using the following code: // Generate public key using RSA encryption protected...
12 Dec 2017 by Björn Kreye
Hi, my Application loads a CSV file and transforms the Data in it. This Data is stored in a List I would like to be able to encrypt every row in this list with a public key and then save it to a new CSV file. After I saved the file with the encrypted data, I would like to encrypt this file...
23 Jul 2018 by ranio
I want to decrypt an encrypted string using RSA 2048 Algorithm. I am able to encrypt the same successfully. But while decrypting I am getting the exception as below: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal...
29 Oct 2018 by Member 8583441
I am a learner in creating password encryption and decryption using RSA Algorithm. I want to create SHA256 with 2048 keysize for user to login and register. What I have tried: i don't know how to start please explain me in brief creating a keycontainer thanks in advance
8 Aug 2022 by bmarcco
When use the code below, windows throws me a dialog with the following message,"Windows security smart card select a smart card device" does anyone know why this is happening and how to prevent it? https://i.stack.imgur.com/hcSqU.png[^] What I...