Questions tagged [encryption]

Encryption is the process of transforming information (called plaintext) into an unreadable form (called ciphertext) using an encryption algorithm combined with a parameter (called an encryption key). Only those who possess the decryption key can reverse the process and recover the original ...

0
votes
0answers
8 views

BouncyCastle AES/CCM encryption incorrect result

I'm trying to use BouncyCastle's AES/CCM with C# to encrypt then decrypt a message.The result of the decryption doesn't match the original message. For an input message "test message", the result ...
2
votes
0answers
14 views

Encrypt - send - save - receive files in iOS

I have an iMessage application that send files. Data is saved in iCloud servers using CloudKit. Everything works well.Now I want to add a new level of security. I want to encrypt the data before ...
0
votes
1answer
7 views

Is user data encryption required with CosmosDB?

I have private user data stored in CosmosDB, which has encryption at rest. Does this mean I still need to store encrypted data or is it already encrypted by Cosmos?If not, what is the recommened npm ...
0
votes
0answers
7 views

Start laravel's session in another app using php

So At first here is what i did, using laravel session config; i shared the session cookie with *.domain.com. so that all subdomains will have access to the session cookie which hold laravel's ...
-1
votes
0answers
16 views

Not getting expected Encryption

I'm trying to follow some online instructions to achieve their desired encryption, but I'm not getting the expected result from the instructions:I've been using PyCrypto and keep getting ...
0
votes
0answers
14 views

How to control length of encrypted String (Cryptography - Encryption)

For example, i'd like to pass in a String "abc" then output encrypted string should be of 32 byte, and when I'd like to pass "abcdef" then output should be of 32 byte also. In other words I want fix ...
0
votes
0answers
14 views

java encription -BouncyCastleProvider: java.lang.NoSuchFieldError: md2

I call the meyhode below in main() methode:private static String tripleDesEncrypt(String message, String key) throws Exception {SecretKey secretKey=new SecretKeySpec(Base64.decode(key....
0
votes
0answers
7 views

Encrypt - Decrypt datagridview mysql: The input data is not a complete block

Im still a c# beginner and the guy who was helping me left. I have 2 databases. I want to move passwords from one database to the other. But every database uses a different encryption. I want to ...
0
votes
0answers
43 views

Parallel.For perfomance problem after few minutes

I am trying to increase performance with Parallel.For. Overall, I am pleased with the results. But after a couple of minutes the program reaches folder with over 1k files and it takes too long to ...
0
votes
1answer
20 views

How does the AES CBC algorithm check if a password turned key is correct?

I'm using this class to encrypt a file or a byte array using the AES/CBC algorithm.However, I don't understand how this algorithm is implemented in Java to check if a password turned key is correct ...
1
vote
0answers
20 views

ASP .NET Core how to Upload/Download large files that are ClientSide encrypted and store/read from EF DB

I'm creating a small React Application wich should upload Files(large -> more than 5GB) to a ASP Dot Net Core API. The API will store the data in an Database with EF Core. The problem is that i have ...
-1
votes
0answers
4 views

Using com.microsoft.aad:adal:2.0.1-alpha package in my android application meet security issue

We have integrated our android mobile application with azure b2c login. We have used following library to do that. com.microsoft.aad:adal:2.0.1-alphaThen we did security scan our apk with Solared ...
0
votes
0answers
10 views

Sign and Encrypt plain text file with digital certificate using MIMEKIT

Very new to signing and encrypting file. Found MIMEKIT and code on stackoverflow. With little or no understanding of how the code work have made changes to it. when opening the created file in a ...
0
votes
0answers
13 views

How to decrypt TLS traffic of a test device port forwarded to a device with Wireshark?

I am decrypting network encrypted packets of a test device. I am following the youtube video below, and have included the content of my key file. I am unable to decrypt. Video: https://www.youtube....
1
vote
0answers
16 views

How to access variables in Perl from the config file for SSL cipher list

I am new to perl , need to edit the code in a way that the code takes the cipher-list from another file say B file.The cipherlist should be a variable in another file B(config file), the value of the ...
1
vote
1answer
51 views

iOS How to encrypt images and data Swift 4

I work with corporate date which must be protected.I have data for example:let userName=String()let password=String()let profileImage=UIImage()So this data i want to encrypt this data ...
-2
votes
1answer
26 views

Wordpress - How to validate the user input password with the hashed password

I want to make a custom login system in wordpress. Such that it asks for username & password. But it is not authenticating the user with the given password because it is different with the ...
0
votes
0answers
12 views

Java - BouncyCastle - 3DES encryption and decryption of files: Files are corrupted after round trip

I am trying to encrypt and decrypt files with BouncyCastle 3DES. But the files are corrupted after encrypting and decrypting. For example a simple text-file or a jpg-image-file. This is my Code:...
0
votes
1answer
23 views

Decrypt external AES256/CBC/PKCS7 data with CryptoJS, provided 64-char Hex key from SiteMinder

I'm attempting to using CryptoJS to decrypt a string, provided a 64 character string from SiteMinder.The decrypted string looks like:8yi6XwyLPZq%...
0
votes
0answers
9 views

Is it okay to encrypt server-side when using HTTPS?

I am creating a messaging service for an app I'm developing. Because of the nature of the messages, it is important not only to verify users, but also verify what conversation the message belongs to. ...
2
votes
1answer
25 views

Restore corrupt 128-bit key from SHA-1

Disclaimer: This is a section from a uni assignmentI have been given the following AES-128-CBC key and told that up to 3 bits in the key have been changed/corrupt.d9124e6bbc124029572d42937573bab4...
1
vote
1answer
37 views

Creating a simple encryption code in python and having a dictionary/logic problem

I'm a python student (by myself), and as an exercise I decided to try making a script to 'encrypt/decrypt' a message.The 'encryption algo' that I'm using is very simple, I learned during military ...
2
votes
0answers
16 views

Pass a sensitive variable value evaluated in one javascript file to another javascript file

I have two HTML files each linked to different javascript files. I am taking a user input in HTML file A and evaluating a variable x using javascript file A. How do I display this variable x in ...
-1
votes
1answer
55 views

Writing a file with Python that con only be read once [on hold]

I'm trying to write a script in python that will allow me to do two things:1) Encrypt a file, so that it can only be read once2) Read this file, and make sure it cannot be read againI'm thinking ...
0
votes
0answers
8 views

Angular 6 FE - Windows Authentication via IIS - rxjs-websockets FE - websocket API - Anti-forgery tokens - SSL type frame encryption over ws://

I recently had a project with some objectives for a corporate intranet CRM type solution that I was re-writting into Angular6, the outcome was what I believe to be a robust websocket API defined by ...
-1
votes
0answers
6 views

Bacnet network security addendum

I am new to Bacnet and I have been using Bacpypes to learn about the stack. For a project, I need to use the network security addendum of the standard (Addendum g, Addendum 135-2004g-1). Does anybody ...
0
votes
2answers
17 views

Is it safe to use several keys in Vigenere cipher method to encrypt?

I am just curious about whether it is safe or not to use this encryptiong method showed below.Assume we have a list of keys to be used in the encrypt process, for example, ['apple','coco','piano']. ...
-3
votes
0answers
13 views

Scripting using shell and bash for System Automation

Please, I do I write a script called encrypt.sh that's used to encrypt files.Here are the requirements for the script:1) It must use openssl to encrypt files (see box below for all you need to know ...
-2
votes
0answers
17 views

secret sharing enabling technologies scenario for any individual holding a secret

In the m:(m+1) secret sharing scenario, if the chance for any individual holding a secret share to be a betrayer (i.e. a betrayer will let an attackerknown his/her ...
0
votes
0answers
28 views

How to encrypt/decrypt password via JavaScript in Jenkins

I am modifying the XML of a Jenkins job config. I want to replace the old AWS key value with new one. I found that the AWS key was encrypted. I need to encrypt the new one first, then update it in ...
-1
votes
0answers
11 views

End-to-end encrypted online spreadsheet tool

I'm trying to identify end-to-end encrypted alternatives to the tools used by an NGO I work with that deals with sensitive data.Tools for cloud storage, email, instant-messaging, collaborative text ...
0
votes
1answer
22 views

How do I mask/encrypt data in a view but maintain uniqueness of values?

Say I have a column in a SQL Server table with the following entries:+----+|id's|+----+|489 ||633 ||251 ||633 |+----+I would like to provide a view to colleagues that masks/encrypts this ...
0
votes
0answers
17 views

Difference between encrypting a file vs its content

I know this is a duplicate: Is file encryption different from content encryptionBut, none of the answers in the duplicate are accepted(not that would be an indication of correctness really) nor any ...
0
votes
0answers
6 views

Getting an Error - encryption command failed when sending pgp encrpted email using enigmail

$gpg --versiongpg (GnuPG) 2.2.10libgcrypt 1.8.3Running Enigmail version 2.0.8 (20180804-1515) Thunderbird 60.0 (64-bit) - Manjaro 1.0When I try to send an encrypted email to myself, it just ...
1
vote
0answers
9 views

How to make AESEncrypt and AESDecrypt Function work in different schema of vertica properly?

I am using:AESEncrypt(input,passphrase) - Returns an encrypted binary stringAESDecrypt(input,passphrase) - Returns the decrypted string Source of the function: https://github.com/vertica/Vertica-...
0
votes
1answer
43 views

How reliable is Java crypto cipher in encrypting data?

I'm trying to learn Java Cipher Crypto and just have a few questions about my code below:public class Main2 {public static void main(String[] args) {Cipher cipher;...
0
votes
1answer
33 views

Is it possible to make my own encryption when sending data through sockets?

For example in python if I’m sending data through sockets could I make my own encryption algorithm to encrypt that data? Would it be unbreakable since only I know how it works?
-1
votes
1answer
25 views

What can an attacker learn from an AES-GCM ciphertexts? [on hold]

Assume that you have a ciphertext produced with a nonce and secret key using AES-GCM. What can an attacker learn from this ciphertext?
0
votes
0answers
31 views

XOR / ASCII - Decryption with repeating key

I will try to explain my problem. I have already searched for hours to find the solution, but unfortunately I still don't know the answer (so, I don't know how I can solve it). I have a "code" (see ...
0
votes
2answers
47 views

Is there a way to convert a String (character by character) to its ASCII value in Java? [duplicate]

I'm currently trying to write an encryption program and I'm trying to figure out how a user can enter a string (a mix of number, letters, and special characters) and have the program convert each ...
0
votes
0answers
28 views

RC4 Decrypt Matlab [on hold]

I trying to learn RC4 encryption/decryption in Matlab, I am using code created by kareem ahmed. I changed few things but still not work well.Already known file format for encryption.Header: ...
-2
votes
2answers
33 views

How to convert text to number a type of encryption in php

I want to convert a text to number using any two way encryption function in PHP ..So that if I'm converting a text or string into a random encrypted number , again I can convert back it to string ......
0
votes
0answers
17 views

Error when I run the “make” command in my project directory

When I run the make command in my project directory I get this error please helpMaking all in tormake[1]: Entering directory '/home/elisha/armr/tor'make all-ammake[2]: Entering directory '/home/...
-1
votes
0answers
16 views

Failing to encrypt using CryptoSwift and Swift 4.2 [on hold]

Creating encryption functionI am trying to create an encryption function using CryproSwift library and swift 4.2, but i am getting an error highlighted in the image above.Any help, tip is welcomed.
1
vote
1answer
28 views

Receiving a continuation character Syntax Error

Does anyone know why am I receiving this syntax error?def softmax(self,x):return 1/(1+np.exp(-x))def encrypt(self,pubkey,scaling_factor=1000):if(not self.encrypted):self....
1
vote
1answer
37 views

How to generate entropy by myself? - RSA Golang

I'm working with Golang's RSA encryption library. The following is the function to encrypt a message:func EncryptOAEP(hash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]...
1
vote
0answers
31 views

Prevent increase file while encrypting with crypto

I'm new using Crypto library on node to encrypt my audio files. Below follow the code:const cipher=Crypto.createCipher("aes-256-cbc", PASSWORD);const encrypted=Buffer.concat([cipher.update(...
0
votes
1answer
24 views

AES encryption using CryptoSwift and CryptoJS

I was to trying encrypt a text using CryptoSwift for ios application, and CryptoJS for web application, which has to be decrypted in Java platform. I could able to encrypt successfully in javascript ...
-3
votes
0answers
23 views

TripleDES/CBC/PKCS5Padding encryption: java.security.InvalidKeyException: No installed provider supports this key: javax.crypto.spec.SecretKeySpec

I'm trying to encrypt an array of 1500 bytes in TripleDES/CBC/PKCS5Padding with a password key generator and I have the next error: "java.security.InvalidKeyException: No installed provider supports ...
-1
votes
0answers
25 views

String decoding during the decryption process

i put my encrypted string as String variable in my program which look like the following. The encrypted string is encrypted using another set of program and paste in to my program String str2="+...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,