Encrypting/decrypting text strings using OpenSSL ECC

How can I use OpenSSL's ECC support to encrypt or decrypt a text string? I am able to generate ECC private/public keys using OpenSSL APIs, but I don't know how to encrypt plain text using those keys.

Login without HTTPS, how to secure?

For a webapplication, when HTTPS is not available as a security measure, is it possible to still make the login somewhat secure? E.g.: Tokenize logins, to make repeat attacks difficult? Somehow...

Are there any security vulnerabilities in this PHP code?

I just got a site to manage, but am not too sure about the code the previous guy wrote. I'm pasting the login procedure below, could you have a look and tell me if there are any security...

shorter php cipher than md5?

For a variety of stupid reasons, the maximum length of a given form variable that we are posting to an external server is 12 characters. I wanted to obscure that value with md5, but obviously with...

How to securely generate an IV for AES CBC Encryption?

I work on some crypto stuff. I use AES 256 with CBC mode I use OPENSSL I am aware of the following things (source = wikipedia): an initalization vector should be: Unique: must not be repeated...

How to use public and private key encryption technique in C#

I want to encrypt data using public/private key technique. I mean, encrypt with the public key of receiver and the receiver can decrypt with their own private key. How can I do that? Do you have...

pip install access denied on Windows

I am trying to run pip install mitmproxy on Windows, but I keep getting access denied, even with cmd and PowerShell using the Run as Administrator option. WindowsError: [Error 5] Access is denied:...

Encrypt/Decrypt Files Using Bouncy Castle PGP in JAVA

I am generating Keypair for PGP Encryption using this class and saving the Files to the disk. import java.io.BufferedOutputStream; import java.io.FileOutputStream; import...

AES Encryption is implemented in ECB mode but it is not security compliant. How to implement CBC mode

I have implemented AES encryption in java, but the algorithm is not accepted by team as it is implemented in ECB mode which is not security compliant.I am very new to cryptography and Security...

Why not just use random_device?

I am a bit confused about the c++11 random library. What I understand: we need two separate concepts: random engine (which can be pseudo (need seed) or real) distribution: it maps the numbers...

How to generate password_hash for RabbitMQ Management HTTP API

The beloved RabbitMQ Management Plugin has a HTTP API to manage the RabbitMQ through plain HTTP requests. We need to create users programatically, and the HTTP API was the chosen way to go. The...

How to generate a cryptographically secure random integer within a range?

I have to generate a uniform, secure random integer within a given range for a program that generates passwords. Right now I use this : RNGCryptoServiceProvider rng = new...

Python - InvocationError in tox running py.test and coverage test

My project has the following structure: my_project | setup.py tox.ini src | core_functions.py client.py server.py sql_database.py tests.py The tests.py file contains the...

Python: why do I get an error when I import geopandas?

I try to import geopandas in my jupyter notebook. import geopandas as gp and I get the following error: ImportError:...

pip._vendor.pep517.wrappers.BackendUnavailable error while installing cryptography

I'm trying to install cryptography to my system, but I get this error: WARNING: Missing build requirements in pyproject.toml for cryptography from...

PyInstaller: StopIteration Error when I import geopandas

I am trying to execute PyInstaller on a my script. I installed all of the required packages and the .exe is succesfully created. But when I execute it on another machine, I get he Following...

Docker+Django+SECRET_KEY: regenerate?

Imagine you create a docker-compose.yml with Django and a bunch of code and use an environment variable to configure the SECRET_KEY in settings.py. If you distribute that Docker image you won't...

ImportError: cannot import name 'rcParams' from 'matplotlib'

I have tried to uninstall and reinstall matplotlib in my tf-gpu enviornment I made but I keep getting this error: ImportError: cannot import name 'rcParams' from 'matplotlib' This is the entire...

Android google play console error APK TRANSMIT USER DATA UNSECURELY

My app uses user current location and address details, Once I completed my app I uploaded it to play store it works fine, I released three to four build without any issues. Last week I uploaded an...

Failed to install gcc on Python-3.7-alpine docker container

I am trying to set up a Python docker container, when I run the command "docker-compose up" to build the Dockerfile it throws me this error message below. The docker file was successfully built...

certbort commands return ModuleNotFoundError: No module named '_cffi_backend'

I followed a guide to get my python flask app running and I am at the last step where I change http into https with certbot. But when I run my certbot command sudo certbot --nginx -d domainname -d...

Fair algorithm to convert random bytes into digit sequence

Most (if not all) CSPRNG functions available out there provide us byte sequences as result (eg. getrandom, CryptGenRandom, BCryptGenRandom, RNGCryptoServiceProvider, SecureRandom, CRYPT_GEN_RANDOM...

DeprecationWarning: crypto.createCipher is deprecated in nodejs

I'm getting the below warning while building my node service. DeprecationWarning: crypto.createCipher is deprecated. I have crypto npm module installed in my service. import crypto from...

ssm-state manager-ansible playbook

I am executing a ansible playbook for ops manager installation in ssm. Issues: Ansible is using python2. how to make it to use python 3? --Output truncated--- ----------ERROR------- Installing...

ERROR: Failed building wheel for psycopg2 (Ubuntu 20.04 + Python 3.8.5 + venv)

Greetings wisdom from Stackoverflow! I'm having issues building wheel for psycopg2 thru pip install -r requirements.txt. I'm on ubuntu 20.04 + python 3.8.5 + venv. This is my...

Heroku SSL connection error unsupported protocol

I have been using Heroku for a while to host my Discord bot. It has been connecting to a MySQL database hosted on ClearDB successfully. However, very recently, whenever I use the bot and it tries...

Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

I have installed package apache-airflow-providers-snowflake on airflow on docker and i am getting error No module named Snowflake Please refer attachment (check the error mentioned for the...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...

How to calculate sha 512 hash properly in .NET 6

In .NET 6 code from http://stackoverflow.com/questions/11367727/how-can-i-sha512-a-string-in-c var data = Encoding.UTF8.GetBytes("key"); byte[] hash; using (SHA512 shaM = new...

Elliptic Curve implementation for product keys

Here I read about the basic idea of how to use asymmetric Elliptic Curve encryption to create a product key, here is a quote: My question is how is it possible to create a product key by a...