Questions tagged [rsa]
RSA is a common public key algorithm, which can be used for encryption and signature. It is a core component of most the security protocols used on the Internet, including the SSL/TLS protocol suite. For questions about IBM Rational Software Architect, use the rational-rsa tag.
6,938
questions
0
votes
0
answers
56
views
Generating RSA Signature in C# Without CRT Parameters Using System.Security.Cryptography or BouncyCastle
I'm working on a C# application (Framework 4.7.2, Visual Studio 2019, upgrading is not an option) that needs to generate a signature for a given sequence of bytes using RSA. My dataset contains only ...
1
vote
0
answers
32
views
I cant execute code because of SSH Authentication error
I am working on a code that: Executes client command during TCP Server.
Server code:
import socket
import paramiko
import threading
# SSH sunucu bilgileri
SSH_HOST = ("localhost")
SSH_PORT =...
0
votes
0
answers
83
views
Not able to decrypt the message from client - RSA cryptography - Golang
The requirement is to have client-server communication using RSA. I am not able to decrypt the message. Created private.pem and public.pem files using the generatekeys.go file.
Created 3 files server....
-2
votes
1
answer
82
views
Encrypt my own message and its giving a different message [closed]
So I'm trying to encrypt my own message but its coming out in symbols instead of letters.
Here is my code below
while b != 0:
a, b = b, a % b
return a
s0, s1 = 1, 0
t0, t1 = 0,...
0
votes
1
answer
71
views
No RSA/ECB/OAEPPadding on Red Hat 8
I'm not versed in cryptography and am pulling my hair out. I have the following (simplified) setup and code.
Maven setup to use BouncyCastle
<dependency>
<groupId>org.bouncycastle</...
1
vote
1
answer
49
views
RSA encryption/decryption script
Can someone help me with this code? I'm trying to encrypt and decrypt a message with RSA in the same program.
This is the code:
import ast
from Crypto.PublicKey import RSA
from Crypto.Cipher import ...
0
votes
2
answers
73
views
Jenkins: "Host key verification failed" when connecting to Git repository on JetBrains Space
I am trying to set up a Jenkins pipeline that clones a repository from JetBrains Space using SSH. However, I keep encountering the error "Host key verification failed." Here is the relevant ...
0
votes
0
answers
50
views
Converting a PKCS8 PEM Private key to a RSAParameter in C#
I have a key in the format
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
I want to convert it to an RSA key to create a JWT from it. I'm using .NET 3.5 Framework.
But when I Use this code
...
1
vote
0
answers
57
views
RSA decryption does not work when saved as base64
I'm trying to encrypt data, save the encrypted data as a base64 string and then use the base64 string to decrypt it again. This works when I base64 encode and decode in the same function but this won'...
0
votes
0
answers
56
views
Problem with android app when using python's Cryptodome
I used kivy to build the android app and used buildozer to convert it to an APK.
I use Cryptodome in my code for RSA encryption/decryption. Before I implemented the use of RSA the code worked fine, ...
1
vote
0
answers
35
views
Manually verifying RSA signature in SAML response
I've been trying to verify a signature of a SAML Response after finding that .NET's SignedXml has an issue (where the exact same SAML Response can be verified using Java).
I know why this is, which ...
0
votes
0
answers
74
views
Ruby Openssl RSA private_decrypt is not raising OpenSSL::PKey::RSAError: padding check failed error
I am using openssl library for RSA encryption and decryption. my ruby version 2.6.10 and rails version is 5.2.8.1
version of openssl is
OpenSSL::VERSION => 2.1.2
OpenSSL::OPENSSL_VERSION => &...
1
vote
0
answers
43
views
Decode JWE token with AWS KMS service c#
Has anyone used AWS KMS async keys (public/private) to encrypt a payload using the public key without using the KMS service and decrypt the payload using KMS service? The scenario would be I give the ...
1
vote
0
answers
93
views
How to handle a Bearer token in .NET 7 when a RSA security key is needed?
There is a existing .NET Framework application that creates Bearer token. Another existing .NET Framework code application is able to recognize the token for authentication and authorization. RSA ...
1
vote
0
answers
67
views
Yii2 md5 with RSA signature
im trying to connect to a API. the documentation need me to use md5 with rsa encryption. this is my 1st time doing this, and i've gotten this far
use phpseclib3\Crypt\RSA;
use phpseclib3\Crypt\...