Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
75 views

I'm building a Flutter app that uses Android TV Remote Protocol v2. The app requires client certificates for authentication. When I use a manually created certificate (placed in assets), everything ...
shakti goyal's user avatar
1 vote
0 answers
78 views

For FIPS mode, I added ClientSignatureAlgorithm in opensslcnf.txt. This change was done for FIPS mode using the crypto-policies package. The support ciphers for ClientSignatureAlgorithms are same as ...
Akshit Soneji's user avatar
0 votes
1 answer
133 views

using (RSA rsa = RSA.Create()) { rsa.ImportFromPem(privateKeyString); byte[] dataToSign = Encoding.UTF8.GetBytes(signData); byte[] signedData = rsa.SignData(dataToSign, HashAlgorithmName....
Orgil's user avatar
  • 317
0 votes
0 answers
90 views

I have a web service that returns a Timestamp Token as a base64 string, I have this code in Java using BouncyCastle to parse, open and extract the date: String timestamp = "..."; byte[] ...
Alfredo Morales's user avatar
0 votes
0 answers
61 views

I'm building a Flutter app that needs to send user data (like name and street) to a Node.js backend server. Currently, the data is sent via URL like this: http://192.168.1.126:8080/save?name=toto&...
totoskiller's user avatar
1 vote
1 answer
82 views

I am using python3-pycryptodome version 3.9.0-150200.9.1 on openSUSE Leap version 15.6. While using Crypto.PublicKey.RSA class, I noticed that generated RSA keys have some algorithmic inconsistency. ...
smss's user avatar
  • 13
0 votes
0 answers
99 views

I'm using Java & Spring Boot for an endpoint which sole purpose is to create, sign and issue JWT. The library used for creating JWTs is java-jwt. I have a problem creating a com.auth0.jwt....
Wrapper's user avatar
  • 942
0 votes
0 answers
74 views

I'm trying to make a server for a password manager I'm building, but the server seems to hang randomly and it seems to randomly throw rsa.pkcs1.DecryptionErrors randomly too. I did recently switch ...
SmallCoder12's user avatar
0 votes
0 answers
92 views

Here is the class that am using ,based on the flow that I have ,the validation always fails and return false in the line boolean isValid = signature.verify(signatureBytes); LOG.info("Signature ...
Karthik's user avatar
  • 381
0 votes
0 answers
129 views

I am doing an OTA updater for an ESP32. I am using AWS Lambda to encrypt a presigned URL that is being generated for a certain element from an S3 bucket. I am first doing an AES encryption, and then ...
Maisu's user avatar
  • 11
0 votes
0 answers
87 views

I am experimenting with developing rsa with flutter and nodejs. public.pem and private.pem are same for both. Both the code are working fine when run in same language. but when transmitting data over ...
Navjot Aulakh's user avatar
0 votes
0 answers
117 views

I have a TR34 sample enveloped data from X9 TR34–2012. I am trying to decrypt it, but I am not sure which part of the token contains encrypted ephemeral key and which exact rsa algorithm is used for ...
etna's user avatar
  • 23
0 votes
0 answers
53 views

I'm working with a Thales payShield 10K and trying to use the EU command to translate a public key under new LMK. I currently have the key available in PEM, DER, and HEX formats. However, according to ...
MaXbeMan's user avatar
-2 votes
1 answer
110 views

I want to protect a RSA private key stored in localStorage by wrapping it with a key derived from the user's password. However when unwrapping the key the error DOMException: An invalid or illegal ...
iKingNinja's user avatar
1 vote
1 answer
90 views

I would like to add RSA encryption in my server (Python FastAPI) and my Android app. But the encryption didn't work as the way I expected. I already have AES-GCM encryption/decryption working between ...
kunteinzo's user avatar
0 votes
1 answer
183 views

I have a C source code that generate a 2048 bit RSA key (it's working, no problem with it) : int main(void) { RSA *lptypRSA = NULL; BIGNUM *lptypBIGNUM = NULL; BIO *lptypBIOPublic = NULL; ...
Tom's's user avatar
  • 2,498
0 votes
0 answers
99 views

I'm in the process of generating a keystore for signing my Android app, and I'm wondering about the best choice for the signature algorithm. My current command is as follows: KeyTool.exe -genkey -v ^ -...
zeus's user avatar
  • 13.3k
0 votes
1 answer
213 views

I have a Java code given to me by a vendor where we generate signature of the payload and send the signature along with the payload in the request. The signature is the same for the same payload no ...
Vineeth George Abraham's user avatar
0 votes
2 answers
131 views

I am using Angular to encrypt the payload with publickey publicKey: string = `-----BEGIN PUBLIC KEY----- -----END PUBLIC KEY-----`; let encryptedCredential = {}; const rsa = Forge.pki....
chaitanya reddy's user avatar
0 votes
2 answers
201 views

I got a PHP application that has to encrypt a string with a private key. It's a bit uncommon to encrypt with the private key, I know, but that's the way it is. The application is PHP5 using a very old ...
user2662314's user avatar
0 votes
3 answers
445 views

I'm working on an integration with Tillo, using signed webhooks as described here. Tillo provide example code for signature validation in Python and PHP. However, I need an implementation in C# and so ...
Elliveny's user avatar
  • 2,113
2 votes
1 answer
347 views

Following on from my previous adventures here apksigner ignoring java parameters when trying to include azure keyvault jca it now appears that I cannot sign using apksigner when using a RSA-HSM ...
wooliestdad's user avatar
6 votes
1 answer
210 views

Just trying to rewrite this c# code to python. Server send public key(modulus, exponent), need to encrypt it with pkcs1 padding. using (TcpClient client = new TcpClient()) { await client....
Tux's user avatar
  • 79
0 votes
0 answers
129 views

I am trying to implement symmetric and asymmetric encryption in a program that has the ability to sign and encrypt, and then verify and decrypt files. I am using the cryptography hazmat primitives ...
Alexa Halpert's user avatar
2 votes
1 answer
855 views

I meet an issue when trying to use snowflake.connector with an RSA pkcs8 key with passphrase. When I try this code, with this kind of RSA Key: openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -...
Stefano G.'s user avatar
0 votes
1 answer
545 views

At work, I have been assigned the task of using the OpenSSL command line (on my laptop in Cygwin) to create an RSA key pair in PEM format, and to encrypt a piece of plain data that will be decrypted ...
RickyBobby's user avatar
2 votes
0 answers
117 views

Backend gives us publicKey and we need to encrypt with RSA/ECB/OAEPWithSHA-256AndMGF1Padding and send it to server. I am using this functions : static func encrypt(string: String, publicKey: String?)...
Axtamov O'lmas's user avatar
0 votes
0 answers
253 views

I have used the encrypt package to generate public and private key pairs. Now I want to send the public key to the server via an API and store the private key in the device for future use I was ...
humblePilgrim's user avatar
0 votes
0 answers
91 views

So I am trying to parse a der format file to extract the public key. I have three algos, RSA, EDDSA and ECDSA. The below code works for RSA but not for EDDSA and ECDSA. I am getting the below error ...
phoenix567sid's user avatar
0 votes
0 answers
107 views

I've some Python pytests that call (indirectly) key = joserfc.jwk.RSAKey.import_key(string). This is pretty slow so I'm hoping there is a way I can save the (string,key) combination in a cache, and ...
Jon Jagger's user avatar
0 votes
0 answers
286 views

I want to give access to a personnel certificate to another process, in PEM format. The process uses openssl. I successfully export the cert to a blob...but something is wrong. NCRYPT_KEY_HANDLE ...
John Rainey's user avatar
1 vote
1 answer
73 views

I have a python code for generating rsa signatures and I am trying to write this code in elixir. python code: import sys import base64 import datetime import json from Crypto.PublicKey import RSA from ...
Marsel.V's user avatar
  • 1,053
0 votes
0 answers
194 views

I am trying to translate this C# .NET 6.0 code to run on .NET 4.8. I am trying to get a token using a RSA private key pem file. But I didn't succeed. Please, can someone help me ? I have a problem ...
Totoblo's user avatar
  • 57
-3 votes
1 answer
193 views

I've generated this test public key using open ssl command and I am trying to turn it into a public key using KeyFactory. It just keeps giving me an InvalidKeySpecException no matter what I try. Any ...
Vara Lakshmi's user avatar
0 votes
1 answer
317 views

When I upload the certificate as this: -----BEGIN CERTIFICATE----- {my certificate} -----END CERTIFICATE----- -----BEGIN PRIVATE KEY----- {my key} -----END PRIVATE KEY----- I am getting the error: ...
Vara Lakshmi's user avatar
0 votes
1 answer
105 views

I'm doing a CTF of my IT-Security course right now, and have to find a token for a Kerberos registration service. The server uses a faulty RSA-like encryption. (yes, this on purpose and not changeable)...
metallbrot's user avatar
1 vote
1 answer
136 views

I am new to the world of encryption and I was wondering if my solution for encrypting/decrypting data is okay. When creating this, I referenced the API documentation from PyCryptodome: https://...
Solitude's user avatar
1 vote
1 answer
152 views

I have a python code which generates signature based on hash string as data. It uses cryptography library to calculate singature based on hash. It uses private key file .pem which contains private key ...
BND's user avatar
  • 93
0 votes
1 answer
241 views

I am encountering a javax.crypto.AEADBadTagException: mac check in GCM failed error when attempting to decrypt data using AES in GCM mode with BouncyCastle. The error occurs during the AES decryption ...
Sisodiya Mahipalsing's user avatar
0 votes
0 answers
116 views

I am developing an ASP.NET Core Web API and want to use JWT (JSON Web Tokens) for authentication. I want to sign the tokens using RSA encryption. The API should be deployable on both Linux and Windows ...
user28663263's user avatar
0 votes
1 answer
122 views

i am trying to read private key from a file using the below code and getting an exception. is there any way to resolve it? generatePrivate() method throws invalidkeyspecexception. import java.nio....
Vara Lakshmi's user avatar
0 votes
1 answer
86 views

I am saving a private key to keychain and now want to retrieve it but some how not able to do it. Following is my code: public func storeKeyToKeychain(_ key: SecKey, tag: String) -> Bool { let ...
pankaj's user avatar
  • 8,478
0 votes
1 answer
189 views

currently using jsencrypt and node-forge for decrypt and encrypt the message using RSA, while jsencrypt is used in frontend and node-forge in backend. import { JSEncrypt } from 'jsencrypt' import * as ...
user824624's user avatar
  • 8,170
0 votes
0 answers
76 views

I am currently facing the following issue: I encrypt data using PHP, specifically Laravel, as follows: static function encrypt($data) { $publicPath = base_path('public.key'); $publicKey = ...
Lê Hoàng Quốc Thanh's user avatar
3 votes
0 answers
156 views

I did a lot of research, but I still have some issues with concept of the TPM and his handling with keys. First at all, the task is to create a RSA-Key for encryption. We want to use this later for ...
Michael R.'s user avatar
0 votes
0 answers
101 views

I have a 4096-RSA Private key that I want to use as key material in AWS KMS to generate a KMS key. While setting up an external key in AWS KMS, it does not let us upload a Key Material directly for ...
Brijesh Patel's user avatar
-2 votes
1 answer
178 views

I'm using Kleopatra after installed Gpg4win. I have generated an RSA key pair with a 1024-bit key size, using my name as the username using Windows Command Prompt. I was suppose to genearte and sign ...
Mario's user avatar
  • 2,084
-5 votes
1 answer
213 views

How to find p,q,a if they random? i have this script from Crypto.Util.number import getPrime p,q = getPrime(256), getPrime(256) n = p*q a = getPrime(128) c1 = (p-a)**2>>128 c2 = (q+a)**2>>...
joram's user avatar
  • 1
0 votes
1 answer
121 views

I am trying to create digital signature of the hash (created using HMACSHA256) in Java using SHA256 algorithm & Pkcs1 RSA signature padding but it is not producing the same signature as ...
Nizami's user avatar
  • 239
0 votes
0 answers
90 views

I am trying to encrypt a message using forge Javascript library and to decipher it using Openssl library suite using RSA algorithm. For some reason, the encrypted message is so corrupt, it can not be ...
TonyG's user avatar
  • 1

1
2 3 4 5
140