Category "encryption"

Trying to submit a payment, to a 3rd party payment gateway, through POST request :S

I am mimicing a user buying a product on a website: www.footlocker.dk. All that works fine, the HTTP session adds the product to cart, submits delivery informat

Python's zipfile library can't extract password protected file

For some reason, Python's zipfile library cannot extract the files in this password-protected zipfile archive. Here is the code I used: import zipfile zip_file

How to read all zipfile in python

I have a zipfile for example, i changed some files in zip and i need to encrypt it and after that save def encrypt(self, zipfile: ZipFile): import base64

AWS KMS manual key rotation and old encrypted data

I'm trying to enable client-side encryption for the data uploaded to AWS S3 by following the guide: https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/k

Parsing encrypted PKCS#8 encoded pem file programatically

I am having trouble figuring out how to properly read a private key of a pem file. I have gone through different topics on stackoverflow, but I couldn't find th

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