Questions tagged [key-pair]

Public-key cryptography, or asymmetric cryptography, is any cryptographic system that uses pairs of keys: public keys that may be disseminated widely paired with private keys which are known only to the owner.

Public-key cryptography, or asymmetric cryptography, is any cryptographic system that uses pairs of keys: public keys that may be disseminated widely paired with private keys which are known only to the owner. There are two functions that can be achieved: using a public key to authenticate that a message originated with a holder of the paired private key; or encrypting a message with a public key to ensure that only the holder of the paired private key can decrypt it.

In a public-key encryption system, any person can encrypt a message using the public key of the receiver, but such a message can be decrypted only with the receiver's private key. For this to work it must be computationally easy for a user to generate a public and private key-pair to be used for encryption and decryption. The strength of a public-key cryptography system relies on the degree of difficulty (computational impracticality) for a properly generated private key to be determined from its corresponding public key. Security then depends only on keeping the private key private, and the public key may be published without compromising security.


Source: Wikipedia

287 questions
0
votes
2 answers

Objective C Secure.h RSA key-pair generating

I tried to ask a follow-up question on this topic with example code on how to generate rsa-keys which did not work for me, but it got deleted by moderator for some reason. So I'm going to try agin with posting a new question. My problem with that…
Dlq
  • 91
  • 2
  • 5
-1
votes
2 answers

Using a terraform file (that is not created yet) in terraform file function

I am trying to create a terraform that will create a windows server, linux machine in an aws vpc and then will save the Windows server and the admin password in a local file, I Know that I will need the keypair in order to decrypt the password of…
EBox
  • 9
  • 2
-1
votes
1 answer

Error while attaching IAM policy and launching instance in AWS from AMI

You are not authorized to perform this operation. Encoded authorization failure message:…
-1
votes
1 answer

How to parse string with key value pair inside in redshift

I have a text column in Redshift and want to extract manager or manager employee id from: "Manager"=>"Alex Dar" , "Cost Center"=>"02-40-731" , "Manager employee ID"=>"testing@test.com" , "Manager First Name"=>"Sohn", I'm expecting to get manager,…
mazur.os
  • 11
  • 3
-1
votes
1 answer

How to Push vector pair value in 2d vector?

Suppose I have a vector> v, the values are in v is {[1,3],[3,7],[8,9]}. I want to store them in vector> vv. How can I do this? I try to store them in vector> vv but I can't solve this
-1
votes
1 answer

Can we create a new user with sufficient permissions to connect on a AWS machine that does not need to use a PEM to RDP/SSH?

Once connecting to a AWS server using the PEM keypair (either RDP or SSH) if we add a new user with local administrator permissions will we be able to logon/SSH without using the original PEM keypair?
kimdav111
  • 19
  • 3
-1
votes
1 answer

I have a problem connecting to AWS EC2 via SSH with .pem

I used the following command in the directory where .pem exists to use the Chrome Extension, Secure Shell. $ sudo chmod 400 myKeyPair.pem $ ssh-keygen -y -f myKeyPair.pem > myKeyPair.pub $ touch myKeyPair $ sudo cat myKeyPair.pem > myKeyPair And…
COLEAN
  • 665
  • 2
  • 9
  • 24
-1
votes
3 answers

Typescript/Javascript: convert array of objects to key,value pair

in my application (React-typescript) I have some documents in the type of interface IDocument {id: string; questions: IQuestion[];} interface IQuestion {number: string; answer: string; } so an array of documents will look like i.e: doscuments:…
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
-1
votes
3 answers

reduceByKey a list of lists in PySpark

I am new to pyspark and so far it is a bit difficult to understand the way it works specially when you get use to libraries like pandas. But it is seems the way to go for big data. For my current ETL job, I have the following elements: This is my…
-1
votes
2 answers

How to create object using pair values from another object in javascript

How to create object using pair values from another object in javascript Input: { firstObject:{ { "version":"1000", "issue":"issue1" }, { "version":"1001", "issue":"issue2" }, { "version":"1000", "issue":"issue3" } } } Above is my input and I…
Pavan
  • 35
  • 6
-1
votes
1 answer

read public key and private key from USB security token

I want ask that how can I use a usb security token epass3003 for encryption Actually I want to know how to read the public key and/or the private key from the usb I have no idea for how to use the usb token
-1
votes
1 answer

AWS EC2 - check if Key-Pair and Security Group doesn't already exist

I am currently developing a application that builds instances on AWS via the api for php. Im having issue working out the best method to check to see if the Key Pair and security group exists before creating another one. $CreateKeyPair =…
Nathan
  • 509
  • 4
  • 16
-1
votes
2 answers

Java - Load RSA key pair from hex string

Consider the following key…
-2
votes
3 answers

How to convert array to key-values

I have the following array: { "red": "Red", "blue": "Blue" } And I want to convert it to a key-value pair like this: [ {"id":"red", "value":"Red"}, {"id":"blue","value":"Blue"} ]
bigmammoo
  • 101
  • 1
  • 1
  • 11
-2
votes
1 answer

How can I load my AWS EC2 Key pair PEM file to my terratest script to perform AWS EC2 SSH connection validation

I am writing Go terratest script to validate SSH connection for AWS EC2 instance I already have AWS EC2 keypair PEM file in my local I am able to launch and destroy EC2 instance using terraform.TgApplyAll() and terraform.TgDestroyAll() methods and…
1 2 3
19
20