Questions tagged [encryption-asymmetric]

A type of encryption which uses one key to encrypt a message and another to decrypt the message.

In asymmetric encryption, also referred as public-key cryptography, there are two related keys--a key pair. A public key is made freely available to anyone who might want to send you a message. A second, private key is kept secret, so that only you know it.

594 questions
0
votes
2 answers

Encryption/Decryption using X509 certificate in biztalk custome pipeline component

I need to use X509 certificate in the BizTalk Custom Pipeline component to Encrypt/Sign the message and to Decrypt/Verify signature, please let me know some good samples/artcile/blogs etc which explains how to acheive this. RSA needs to be the…
Howard
  • 11
  • 1
  • 4
0
votes
1 answer

asymmetric encryption for text field

I updated my question to reflect the sql encryption rather than asp.net. I created my key in sql USE DatabaseName GO CREATE ASYMMETRIC KEY MyKey WITH ALGORITHM = RSA_2048 ENCRYPTION BY PASSWORD = 'Password1' Then I Modified the keys private key…
Jawaid Akhtar
  • 41
  • 2
  • 9
0
votes
1 answer

python X.509 asymmetric encryption

I'm trying to understand how certificate and asymmetric encryption works. I'm looking for a python library where i can import public or private ca signed certificates and automatically encrypt or decrypt message in string format, i viewed the crypto…
FrankPak
  • 371
  • 1
  • 4
  • 21
0
votes
1 answer

use a 512 bit asymmetric encryption key to avoid 'contain encryption' in the app

I have an app that contains a sqlite db with some data is encrypted with a public/private key combination. I generate this pair from the distribution provisional certificate in keychain access (Right click and save as .cer and then again as .p12…
Alex J
  • 1,547
  • 2
  • 26
  • 41
0
votes
1 answer

How to decrypt data signed by RSACryptoServiceProvider

I am starting to use encryption and decryption in my web service. I am using the RSACryptoServiceProvider and when using the Encrypt & Decrypt methods, I have no problem. However, as soon as I try to use the SignData method with new…
Storm
  • 3,062
  • 4
  • 23
  • 54
0
votes
1 answer

Recommended *minimal* elliptic curve library in c

Any recommendations for a c-library implementing elliptic curve cryptography - the smaller the better. I know openSSL provides it, but I want something as small as possible. It doesn't need any fancy stuff like constant time encryption / decryption…
Nuoji
  • 3,438
  • 2
  • 21
  • 35
0
votes
1 answer

Encrypting data symmetrically and asymmetrically

As far as I have learned so far, asymmetric encryption is too costly for long data. Additionally, from a technical perspective, it's not even possible to encrypt arbitrarily large portions of data (the size of the data is limited by the size of the…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
0
votes
0 answers

AES sending 32 bytes from Java application, only reading 29 bytes from C# application

A college's mailroom is in dire need of new software to help with their operations. The current program was written back in the early '90s in what they believe is python. Two others and myself, are modernizing it. I am in charge of the networking…
0
votes
2 answers

Java Encryption C# Decryption

I got a module which RSA encrypts the data and passes on to the C#. C# needs to decrypt it based on the public key (64 bit encoded) and the passed token. I have token , 64 bit encoded public key, can some help me get with the sample to get…
bkhanal
  • 1,400
  • 3
  • 16
  • 24
0
votes
2 answers

Storing sensitive data in mySql

I am lookin to harden security on one of my client sites. There is no payment provider set up so sensitive Direct Debit information needs to be on a mySql server. This Direct Debit information needs to be human readable by users from accounting…
Gravy
  • 12,264
  • 26
  • 124
  • 193
0
votes
2 answers

Decrypt a larger text using RSA private key

I have to encrypt and decrypt a large string using RSA public key and private key. I have managed to encrypt a larger text using the following sample code public static string Encrypt(string publicKey, string data, RsaKeyLengths length) { …
Selvakumar
  • 21
  • 3
0
votes
1 answer

PGP - GnuPG - A few questions

I want to use GnuPG (http://www.gnupg.org/), the open source software that is a full replacement for PGP. The software looks great though I have never used it before. I will be using the software to encrypt files to transfer via the web, I am not…
Daniel Kivatinos
  • 24,088
  • 23
  • 61
  • 81
0
votes
1 answer

How to perform asymmetric encryption with Botan

I'm using Botan to generate a hash, perform encryption with AES256, and now I want to perform asymmetric encryption with that. Reading this page: http://botan.randombit.net/pubkey.html. I created a code to generate the public and private keys for…
user1576869
0
votes
1 answer

simple crypto lib/tool for config settings

My app stores db connection-strings in an xml config file that is stored under source-control ( svn ). When deployed in prod, my app needs to retrieve the encrypted strings and decrypt them. The ability to perform ad-hoc encryption should be limited…
BaltoStar
  • 8,165
  • 17
  • 59
  • 91
0
votes
1 answer

BadPaddingException: invalid ciphertext

I would like some help as this is my first time in coding cryptography code. The encryption code appears to be working correctly, but the decryption throws an error. The error I get is: de.flexiprovider.api.exceptions.BadPaddingException: invalid…