Category "encryption"

poppler pdfunite cannot merge encrypted PDF files, how to remove encryption? (no password needed to open)

I have some PDF files which I want to merge into one. I typically use pdfunite from the Poppler PDF toolkit to do this. However now I'm getting this error: Cou

Retrieve PEM-encoded private key from API Gateway Client Certificate

I am following along with the following tutorial to add an SSL certificate to an API hosted with AWS API Gateway: aws-docs. I am able to successfully follow alo

How to apply Shamir's Secret Sharing on strings passwords

I was trying to write a simple code to generate and obtain passwords using Shamir's secret sharing method. My question is: How can I apply this to string passwo

How to generate the output in hexadecimal in Openssl?

Finally I am able to get the output in base64 format by using the "-a" switch; there is any hexadecimal switch that I can use? echo '0: 63616e74676574746869733

How to replicate bouncycastle CMSEnvelopedData decryption using Openssl

I have working code that uses Java Bouncycastle lib that (as I understood) decrypts CMS data. byte[] encryptedData = Base64.decode(encryptedText); CMSEnvelopedD

Custom auth "The oauth state was missing or invalid"

My team and I created a custom OAuth to be used for external SSO. It works on localhost but as soon as we take it up to our staging environment we get an "The o

How to create a GitHub repository secret /encrypt it using bash on Ubuntu?

I'm trying to create/update a GitHub secret using bash on Ubuntu. Their api docs say that I should get the public key from the repo encrypt the secret with it c

Using std::string for key with AES encryption in Crypto++

I am using Example of AES using Crypto++. I want to encrypt with this key: std::string key = "mykey"; Allocate memory for key byte key[ CryptoPP::AES::DEFAU

Crypto.js decrypt with key and iv (vector) in byte arrays

I have to decrypt some strings which are AES encrypted. Example encrypted string: 129212143036071008133136215105140171136216244116 I have a key, and a vector

How to set TLS cipher for Go server?

I'm currently using the following listen and serve command to run a secure websocket/file server: http.ListenAndServeTLS(":443", "site.crt","site.key", router)

Exact alternate to mcrypt_encrypt in PHP 7.2

Since mcrypt_encrypt is no longer supported in PHP 7.2, I am trying for exact alternate to this function. After reading many SO answers I have found the foll

CryptoJS - Decrypt an encrypted file

I'm trying to write an application to do end-to-end encryption for files with JS in browser. However I don't seem to be able to get all files decrypted correctl

How to store password field in oracle 11g database in encrypted form?

I have a table in database with this structure: Username Password Age email Address Phone Number I want to store this table's data manually(not by an input

How to store password field in oracle 11g database in encrypted form?

I have a table in database with this structure: Username Password Age email Address Phone Number I want to store this table's data manually(not by an input

How to securely store a user password in java for reuse throughout application

At the start of my Java application, I have the user enter his username and password. These credentials are stored in a ConnectionKey object which is used as th

Asp.net core, "asn1 encoding routines:asn1_d2i_read_bio:not enough data" error for certificate

When running my asp.net core application locally in my Linux Docker container, the following error occurs: Unhandled exception. Interop+Crypto+OpenSslCryptograp

Flutter - How to decrypt a RSA private key encrypted string if we have RSA public key with us?

Flutter app receives public key in the form of contents of public.pem file which would be a string like "-----BEGIN PUBLIC KEY----- MIICqq7DBi9sBXZfDYJC+G57JYUC

Is there any difference, if I init AES cipher, with and without IvParameterSpec

I was wondering, is there any difference, if I init AES cipher, with and without IvParameterSpec? With IvParameterSpec SecretKeySpec skeySpec = new SecretKeyS

Create compatible Java "RSA" signature using a PKCS#8 encoded private key

I have pkcs8_rsa_private_key file which generate by openssl from a rsa_private_key.pem file. I need make a signature by the private key in python, make the same

Getting Started with crypto++ decryption with AES

I'm trying to learn a bit about cryptography and am trying to use AES decryption with the crypto++ library in c++. I have a ciphertext string and a key string.