Questions tagged [public-key]

Public-key (or asymmetric) cryptography is a form of cryptography that does not require common secrets between the communicating partners.

Public-key cryptography or asymmetric cryptography is a form of cryptography that does not require common secrets between the communicating partners. It thus solves the problem of key-exchange. In many modern cryptosystems, public-key cryptography is used to establish a secret key, and the faster symmetric key crypto is used to actually encrypt and decrypt data.

Public-key cryptography is generally based on "one-way" mathematical functions - operations that are easy to perform, but difficult to undo. An example (on which RSA is based) is multiplication vs. factoring. Given two enormous primes p and q, it is simple (for a computer) to multiply them together to get p*q = n, but it turns out it is very difficult (even for a computer) to factor n in a reasonable amount of time.

1163 questions
-1
votes
1 answer

Not able to push to Github, getting "permission denied (publickey)"

Administrator@SANZVAIO /e/projects/pySan (master) $ git remote add pySan git@github.com:sanfx/.git Administrator@SANZVAIO /e/projects/pySan (master) $ git push -u origin master The authenticity of host 'github.com (207.97.227.239)' can't be…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
-2
votes
1 answer

Unable to use ssh - public key issue

I am new to programming and am trying to ssh to my server as that may be needed later to edit code. My ~/.ssh/id_rsa.pub is ssh-rsa…
Mike K
  • 1
  • 4
-2
votes
2 answers

SSH server key verification: How to avoid 2 different key fingerprint formats?

During the 1st SSH connection with a new Linux server (Ubuntu), I am presented with a key fingerprint in a format such as: ECDSA key fingerprint is SHA256:Dvj5iH81LekYL2qA6VY1NkzXTB1TSkH+yc3kVclgGBc. Are you sure you want to continue connecting…
TomDogg
  • 3,803
  • 5
  • 33
  • 60
-2
votes
1 answer

CentOS 7 Server Log In via SSH not asking for key password

I can imagine this could be a little tricky to answer but hopefully someone might be able to help. I have searched around and couldn't find much on this specific question. Basically, I'm renting a dedicated server running CentOS 7 and so just trying…
wsjlisseter
  • 99
  • 1
  • 1
  • 10
-3
votes
2 answers

confusion in public and private key

in Encryption and decryption same key is use to to convert plan text to cipher and cipher to plan text. so why in public key cryptograpy method sender Encrypt using receiver public key and receiver decrypt using his own private key ?
-4
votes
1 answer

name 'privtopub' is not defined

My code looks like: from django.shortcuts import render, redirect from django.contrib.auth.models import User, auth from django.contrib import messages from .models import Details from bitcoin import * import random import bs4 import requests def…
-4
votes
2 answers

KeyPairGenerator not available

I am creating a program to generate a key pair but i have this error: Exception in thread "main" java.lang.NullPointerException at generateAESKey.main(generateAESKey.java:43) This is currently what I have been working. The key.getEncoded()); is…
Salvatore
  • 1
  • 1
  • 4
-4
votes
1 answer

In Public Key Cryptography how the server decrypts the message from client?

In the Public Key Cryptography all I know is that the public key in the server is to encrypt the message and the client which has the private key can decrypt that message which is fine. The part which I don't understand is that as the server has…
mohamed
  • 311
  • 2
  • 6
1 2 3
77
78