Category "rsa"

How to generate two RSA for ASN.1 DER encoding their modulus with and without padding (bug in sample code?)

My question is basically as follows: How to generate two cases of 2048 bit RSA key so that their unsigned big endian modulus requires prefix with 0x00 and anoth

Generate RSA key with large public exponent

Step 1. I generated RSA key pairs for Alice and Bob, respectively, and encrypted a message for Alice using Alice's public key. Step 2. I multiplied the public

Can I get encrypt data from this expression?

While studying RSA, I saw this decryption form. M = Cd mod N If i know M,d,N, How Can I get C data from this expression? Is there any solution?

RSA in digital certificate

In a digital certificate issued to a domain, using an RSA cipher, I would like to find the prime number used in the encryption. In firefox you get the public ke

How to save SHA256 object to a file?

(I'm doing all this in python 3.10.4 using pycryptodome) I'm trying to do this process: Get a hash of a file Save that hash somewhere Load that hash and perform

Porting python PKCS1_v1_5 encryption code to java but java code not work

I have a backend,which receives codes and returns true or false. I send it codes using my python encryption,it returns true(the result varible): from Cryptodome

How to generate RSA PKCS5 keypair in Javascript?

I need to create a set of RSA keys (public+private) on the client (javascript), send it to the server (Ruby) that uses those keys to encrypt data, which is sent

Java RSA decryption javax.crypto.IllegalBlockSizeException: Data must not be longer than 256 bytes

Small RSA decryption question with Java please. I want to meet in a secret location with a friend of mine. As we do not want anyone to eavesdrop on the secret l

How to generate safe RSA keys deterministically using a seed?

How do we use a mnemonic list of words as a seed (like we have been become accustomed using cryptocurrency wallets) to be able to recover a private key in case

Convert Bouncy Castle RSA sign to .NET 5 sign

I'm trying to remove the dependency on Bouncy Castle for a PowerShell module, whilst keeping it cross platform. Currently I have the following code: function In

Unable to Connect to SFTP through paramiko

I am trying to establish a connection with an SFTP with paramiko. I was able to generate the known_hosts file in my local system by using ssh my.domain.com The

Why can't I get an rsa key fingerprint for Github instead of a ED25519 key fingerprint?

I'm starting a coding bootcamp pretty soon and in a tutorial they have given me they tell me to only accept an rsa key fingerprint of SHA256:nThbg6kXUpJWGl7E1IG

Unable to negotiate with __IP_ADDRESS_ port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

While using git clone in PhpStorm, I got an error message: Clone failed Unable to negotiate with IP ADDRESS port 22: no matching host key type found. Thei

Unable to negotiate with __IP_ADDRESS_ port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

While using git clone in PhpStorm, I got an error message: Clone failed Unable to negotiate with IP ADDRESS port 22: no matching host key type found. Thei

Mathematics Mod Function

I would love if someone can try to explain the difference between the two equations below and why they equal different values but from what i can see are the sa

Deterministically generate public/private key from a seed for asymmetric encryption

I am trying to implement a client side method to encrypt data in transit, and the key will be generated from client side with node.js Right now, i am stuck in a

Thales HSM Import Public Key (EO) error '04'

I am sending this command with a DER encoded public RSA key. 1234EO013082010a02820101ec7b6d6be7d0603e3f247c22dd0ae533f02f1216fd9099d6ec5c596eb92c95e8ee87e3437af

Getting errors while trying to decode string with rsa and base64

I'm trying to make a password manager with Python and encrypting the passwords with RSA. that part went smoothly. What's not going smoothly is the decryption. T

Android javax.crypto.IllegalBlockSizeException

I have an issue with this helper class where I get an exception while I tried to decrypt. I tried a few solutions on the internet and they seem not working. Thi

Convert RSA Public .pem file to pkcs8

Created RSA public - private key pairs using following commands - Private key - openssl genrsa -out private-key.pem 512 Public key openssl rsa -in private-key.