Category "encryption"

Use diffie hellman key exchange algorithm to encrypt and decrypt files in python

I want to implement an algorithm which will encrypt and decrypt files using diffie hellman algorithm but I am unable to find any solution for the same. Here is

How to validate data received via the Telegram's Web App

I'm trying to validate WebApp data but the result is not what I wanted. Telegram documentation: data_check_string = ... secret_key = HMAC_SHA256(<bot_token&g

Why https uses symmetric encryption for data transfer after establishing connection

I am trying to understand the working model of HTTPS protocol, Initially for establishing a secure connection asymmetric encryption was used, Once the client-se

Decrypting encrypted encoded string containing SAML assertion using OpenSAML in java

I'm trying to build utility that accepts an encrypted/encoded string containing a SAML 2 assertion string and spits out a decrypted/decoded assertion as plainte

What is the key scheme and encoding used in GUN?

What are the key schemes, sizes, and encodings used in GUN db? I didn't find a quick answer on searching so am adding the question here. The keys look like: let

How to use 15 length character key in flutter encrypt package

I'm going to use this package for encryption in the flutter application. It doesn't accept keys lower than 16 characters long. But I want to use 15 characters k

Convert Bouncy Castle RSA sign to .NET 5 sign

I'm trying to remove the dependency on Bouncy Castle for a PowerShell module, whilst keeping it cross platform. Currently I have the following code: function In

Users can decompile Source Code, how can I safely access Databases and Servers?

So, Im programming a Chrome Extension. I want to store data in a Database. I logically dont want anyone else to have access to the database. How can I make it t

SImon cipher in CBC mode using Python

I want to implement CBC mode in Simon Cipher and i also have put the initialization vector. My problem is why the decryption output give the wrong result. The o

How do I keep grabbing bytes and encrypting them in Python?

cipher = Cipher(algorithms.AES(key), modes.CTR(iv)) decryptor = cipher.decryptor() plaintext = decryptor.update(data[0:4]) paramEntry1 = int.from_bytes(plainte

Python Bytes & Lists & Encryption

I'm using Fernet to encrypt my data with this implementation. Let's assume that I have these three data: data = [fernet.encrypt("Hello".encode()), fernet.encryp

How do I find Hash type If I know INPUT an OUTPUT

I have an encrypted hash and I don't know the HASH TYPE. I have 2 alternatives, one of them is surely correct (matches INPUT with OUTPUT). How can I find the ha

How did this machine establish an encrypted connection with a server with just a TCP handshake?

beginner here. I am currently looking at some C&C traffic from an infected machine and have come across some interesting TCP segments within the PCAP file.

How I can encrypt data with 32 bits length using AES algorithm?

I have a version of AES algorithm with 128bits in plaintext, now i want to change this version to 32bits in plaintext . How can i do this, please ? That's part

Unable to decrypt PGP encrypted file into Stream from Azure Blob storage using C# scripting within script task of SSIS

I am trying to read the PGP encrypted file from Azure Blob Storage using SSIS package - Script Task- C# code into Stream, decrypt the file data into string and

Defining multiple encrypted parameters

I have encrypted parameters in my url, for example: Encrypted example.com/?auth= *****"encrypted data here including other parameters like &username=hellowo

TLS_DHE_RSA_WITH_AES_128_CCM support

I am getting below error when trying to run a server with TLS_DHE_RSA_WITH_AES_128_CCM: java.lang.IllegalArgumentException: Unsupported CipherSuite: TLS_DHE_RSA

Rijndael Encryption/Decryption C# to PHP conversion

I have an encryption decryption class written in C# and i need help writing same algorithm in PHP to obtain same output result, any help finding a reliable solu

Failed to decrypt data with Fernet - TypeError: token must be bytes

I'm trying to make simple encrypt/decrypt cli script. I'm getting an error while decoded the encrypted text. TypeError: token must be bytes If I use str.encod

How to encrypt string which has special characters using AWS KMS

I want to encrypt and decrypt string using AWS KMS: Case 1: string = 'AKCp5aUZygCWGJeAHYSFwi6yxYbcShTGUSQwBXp8wTBnjVTpRDb5EyStWEQmZ1RPsPmYt9sjz' aws kms encryp