rsa

Java p12 Generation from a existing keys

谁说胖子不能爱 提交于 2020-07-20 04:00:50
问题 I'm writing a program in Java that generates RSA keys using Crt parameters. I'm able to export the key in a .pem file, but I need to export it in a pkcs12 file. How can I do that in Java? 回答1: Java contains native support for PKCS#12 key stores through KeyStore.getInstance("PKCS12") . However, generally the key stores require you to offer a matching private key / certificate pair. Just providing a public key instead of a certificate is not enough. You must create a certificate, for instance a

RSA encryption using Microsoft Excel

こ雲淡風輕ζ 提交于 2020-07-09 07:13:48
问题 Is there any ready to use implementation of RSA encryption algorithm for Excel( just encrypt a plain text using given public key, nothing else ) ? Or I need to implement it from the beginning ? I Google but found nothing useful. Any useful links is welcome. UPDATE: I need a non-commercial library. 回答1: This site Simple RSA Encryption and this site have some example code for both VBA and .NET 来源: https://stackoverflow.com/questions/13500280/rsa-encryption-using-microsoft-excel

RSA encryption using Microsoft Excel

老子叫甜甜 提交于 2020-07-09 07:13:20
问题 Is there any ready to use implementation of RSA encryption algorithm for Excel( just encrypt a plain text using given public key, nothing else ) ? Or I need to implement it from the beginning ? I Google but found nothing useful. Any useful links is welcome. UPDATE: I need a non-commercial library. 回答1: This site Simple RSA Encryption and this site have some example code for both VBA and .NET 来源: https://stackoverflow.com/questions/13500280/rsa-encryption-using-microsoft-excel

RSA encryption using Microsoft Excel

◇◆丶佛笑我妖孽 提交于 2020-07-09 07:13:09
问题 Is there any ready to use implementation of RSA encryption algorithm for Excel( just encrypt a plain text using given public key, nothing else ) ? Or I need to implement it from the beginning ? I Google but found nothing useful. Any useful links is welcome. UPDATE: I need a non-commercial library. 回答1: This site Simple RSA Encryption and this site have some example code for both VBA and .NET 来源: https://stackoverflow.com/questions/13500280/rsa-encryption-using-microsoft-excel

RSA encryption using Microsoft Excel

∥☆過路亽.° 提交于 2020-07-09 07:12:16
问题 Is there any ready to use implementation of RSA encryption algorithm for Excel( just encrypt a plain text using given public key, nothing else ) ? Or I need to implement it from the beginning ? I Google but found nothing useful. Any useful links is welcome. UPDATE: I need a non-commercial library. 回答1: This site Simple RSA Encryption and this site have some example code for both VBA and .NET 来源: https://stackoverflow.com/questions/13500280/rsa-encryption-using-microsoft-excel

C# Verifying PDF signature

只谈情不闲聊 提交于 2020-07-08 03:05:27
问题 Trying to validate PDF signature isn't working. The PDF were signed by Adobe Acrobat and then trying to verify it with the public key of the client certificate. So I get the public key of the client certificate, hash the PDF and verify if the hash is equal to the pdf signature, but it fails. HttpClientCertificate cert = request.ClientCertificate; X509Certificate2 cert2 = new X509Certificate2(cert.Certificate); PdfReader pdfreader = new PdfReader("path_to_file"); AcroFields fields = pdfreader

C# Verifying PDF signature

风流意气都作罢 提交于 2020-07-08 03:05:11
问题 Trying to validate PDF signature isn't working. The PDF were signed by Adobe Acrobat and then trying to verify it with the public key of the client certificate. So I get the public key of the client certificate, hash the PDF and verify if the hash is equal to the pdf signature, but it fails. HttpClientCertificate cert = request.ClientCertificate; X509Certificate2 cert2 = new X509Certificate2(cert.Certificate); PdfReader pdfreader = new PdfReader("path_to_file"); AcroFields fields = pdfreader

Using a X509 certificate for decryption

↘锁芯ラ 提交于 2020-06-29 12:06:35
问题 I have some data of an X509v3 certificate that is used at a central licensing station. My question is is the following amount of information enough for me to decrypt data using C# code? And additionally, how are the certificate properties imported into a project? Do I have to create a certificate file in order to go on? Known to me are: Subject Serial Number Issuer "root-ca" Public Key Algorithm: "rsaEncryption" RSA Modulus, 128 bytes RSA Public Key Exponent X509v3 Extended Key Usage:

Using a X509 certificate for decryption

六月ゝ 毕业季﹏ 提交于 2020-06-29 12:05:36
问题 I have some data of an X509v3 certificate that is used at a central licensing station. My question is is the following amount of information enough for me to decrypt data using C# code? And additionally, how are the certificate properties imported into a project? Do I have to create a certificate file in order to go on? Known to me are: Subject Serial Number Issuer "root-ca" Public Key Algorithm: "rsaEncryption" RSA Modulus, 128 bytes RSA Public Key Exponent X509v3 Extended Key Usage:

android.security.KeyStoreException: Unknown error On a rare number of devices

别等时光非礼了梦想. 提交于 2020-06-12 05:27:05
问题 I'm getting android.security.KeyStoreException: Unknown error On a rare number of devices with different Android Versions (6 - 8) This is my key generation code: final KeyPairGenerator keyGenerator = KeyPairGenerator .getInstance(KeyProperties.KEY_ALGORITHM_RSA, ANDROID_KEY_STORE); keyGenerator.initialize(new KeyGenParameterSpec.Builder(ALIAS, KeyProperties.PURPOSE_ENCRYPT | KeyProperties.PURPOSE_DECRYPT) .setKeySize(2048) .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1)