Newest encryption Questions

Q&A for professional and enthusiast programmers

What is the best cryptography algorithm that can be used to encrypt/decrypt folders? [on hold]

I am currently working on a new project. I'll appreciate your suggestions on what is the best algorithm to use in encrypting and decrypting folders? The folders are also in my own machine. There are ...

Why my WCF client encrypts the request when I change from WS-Security 1.0 to 1.1?

I'm trying to consume a java web service from a WCF client with this specifications: The request must be signed (but NOT encrypted). I have my client's certificate installed on my computer. The ...

Understanding digital signature [on hold]

As per my understanding digital signature take advantage of asymmetric encryption. Owner signs content by encrypting [private key] and all other users decrypt using public key and then compare to ...

How to make equivalent encryption? (java, C#)

Our C# version of this seemingly simple and standard java RSA encryption code is NOT generating the same result. Help? NOTE: the java code uses a DER file, so we had to firstly convert it to PEM ...

Is it possible to make an interactive fully homomorphic encrypted (Turing) machine?

Using FHE schemes it is possible to perform NAND operations on encrypted data without knowing the decryption key. If I were to implement something like a universal turing machine using only NAND ...

AES encrypt in Swift similar to Android

I need to perform plain AES encryption without any padding and without mentioning cipher mode in Swift. Can someone throw some lights on it? In Android, it is possible to import the default ...

Java password-based encryption fails on Linux

I need help figuring out why Java encryption fails on my machine running Linux Mint 17.2 Rafaela. My application is not able to decrypt previously encrypted values using the RC4 algorithm. I am ...

javax.crypto.BadPaddingException: pad block corrupted, on decryption

I know this error has been subject of many post on this forum, but most of the time the issue of those post is charset ecoding beauxe people want to cipher strings. The issue is that in my case i'm ...

Security of Text Hashing with NodeJS Server

I have a NodeJS server in which I need to hash passwords from clients. As NodeJS apps are not compiled, would it be substantially more secure for me to write the hashing process in a language from ...

Which approach to use to implement encryption in a Windows desktop app? [on hold]

I will need to do some encryption of the user data in my Windows desktop application, written in C/C++ using WinAPIs (no .NET or WinRT stuff.) Namely, I'll be doing the following: Symmetric ...

How would you reverse what this code does?

Here is the code I have for an encryption class: String encrypt; String message; String alpha; String eMessage; int index; Key keyObject; public String Encrypt(){ String[] alphabet = { ...

Encrypting password text file myself

I'm starting to have a big list of passwords I need safely stored. I was looking at password managers like LastPass, but these always seem to be targetted by hackers and have been compromised before. ...

Only encrypt mails when possible

Is it possible to only encrypt mail when its possible. I wrote a add in which auto forward mails. The AddIn stops when it tries to send a mail which cant be ecrypted. I tried to catch and handle the ...

Redirect output from ffmeg to openssl

I'm using ubuntu and I'm trying to record a video using ffmpeg and encrypt it with AES using openssl.I want to begin the encryption and the record in parallel (bytes coming from ffmeg redirected to ...

Trouble decrypting openSSL AES CTR encrypted text

I have trouble decrypting an message encrypted in php with the openssl_encrypt method. I am using the new WebCrypto API (so I use crypto.subtle). Encrypting in php: $ALGO = "aes-256-ctr"; $key = "...

Why does mcrypt encryption includes a lot of null chars in the final string?

My question is why simply decrypting the encrypted string using PHP's mcrypt functions causes to have a lot of null (\0) chars the final result? and how to get the actual first string with the exact ...

[Android][Encryption]How to avoid using string while declaring type of enryption

I am using BouncyCastle for encryption/decryption. Is there any way to avoid Cipher.getInstance("RSA/ECB/PKCS1Padding")? I want to prevent attacker of knowing which algorithms I am using. I am trying ...

C++ AES Decryption (for learning purpose)

I'm trying to encrypt a plain-text message using AES encryption. So far, I am able to encrypt my plain-text without any problem. Checked it against some trust-able online AES encryption website. ...

How to use Let's Encrypt with Azure's API Management

I have began developing by microservices architecture utilizing Azure's API management service as the reverse proxy. To provide custom URLs for the API management, you must specify a URL + include a ...

Why my code to convert any image to a Base64 string is not working?

I am trying to convert any image to a Base64 String but not getting the output See the screenshot what I am getting Screenshot Javascript code function encodeImageFileAsURL(cb) { return function()...

How can I encrypt text with PHP and decrypt it with Python?

I have a PHP file that encrypts text with this code from here: Best way to use PHP to encrypt and decrypt passwords? $key = 'password to (en/de)crypt'; $string = ' string to be encrypted '; // note ...

Jsch can't connect to Kerberos Realm with cached Ticket

I setup a Kerberos Server and Realm following the instructions here: https://wiki.ubuntuusers.de/Kerberos/ Realm name = EXAMPLE.COM Admin/KDC server = T20-server User principal (with password test) = ...

SQL Server : The pros and cons of certificate and symmetric key

I would like to know the pros and cons between of its. Which is better in specific work?

Secure file upload from Node.js server to PHP server

I'm trying to find a safe way to to allow logged in users of my Node.js app (N) to upload/delete files inside their own folder only on a PHP (P) server on a different domain. Can some expert tell me ...

Our files encrypted via teamviewer by hackers. [on hold]

Our files encrypted (using winRar) via teamviewer by hackers. Is there a any track system in teamviewer or in windows that stores the keys that entered via teamviewer? Or the only solution is to hope ...

Coud not decrypt (pad block corrupted) in Android (PBEWithMD5AndDES)

Situation: String is getting encrypted in Java environment (javax.crypto.Cipher/PBEWithMD5AndDES), base64 encoded String is transfered to Android Same crypto decoder is used, only different base64 ...

Encrypt in PHP 7 decrypt in Node JS

In PHP 5.6 there were plenty of solutions that worked perfectly that were based on http://php.net/manual/en/function.mcrypt-decrypt.php For example public function encrypt($data) { //don't use ...

Protect sensitive data in embedded devices?

What is the safest way to store sensitive data on an embedded device? At my job, I am developing a product for the consumer market, it will have an eMMC card, with very valuable data in it. I want to ...

Encoding a String as a picture causes compression

I'm working on a program that takes a string, turns each character of the string into a color, then draws the colors left-to-right, top-down across an image. The image can then be decoded using the ...

How Long Does It Take To Brute Force Blowfish 448? [on hold]

I am conducting an investigation on the efficiency of AES and Blowfish in regards to memory when encrypting data of varying sizes. I open my essay with an introduction as to what encryption is and the ...

How to transform variable-length password to fixed length secret key

Normally a password would be arbitrary strings, such as "abc", "1234". But the encryption algorithm like DES requires a fixed length secret key. I'd like to know how to transform variable-length ...

too much data for RSA block, only when using CipherOutputSream

I am currently trying to encrypt some string using Java JDK version is 1.8.0. The process is like this: RSA-PrivateKey(MD5Hash(original-string)) I am using Cipher and BC for encrypting & ...

What network and server data fields require encryption?

Am building an online service desk that keeps track of servers and network devices. System is on Amazon cloud. Security basics are covered. Additionally, would like to know if some fields would ...

Caesar encrypted ASCII text partially decrypted

I am trying to decrypt by brute force a Caesar encoded base 256 ASCII text. The text in question is: dy}uƒ0^u‡0b}q~K‹lvAlv‚}q~lv€‚Blvsxq‚ƒu„B0c‰}r|K‹lvBlvƒ‡yƒƒlv€‚Blvsxq‚ƒu„@0Q‚yq|K‹lvClv‚}q~lv€‚...

Writing to a file in python

The following is the code import sys print "Enter '1' to upload a file." +'\n' print "Enter '2' to download a file." +'\n' print "Enter '3' to view the contents of a file" +'\n' print "Enter '4' to ...

Issue with key (cipher error) when changing laravel folder structure

I am changing laravel 5.3 folder structure. What I exactly do is basically move all the content from public folder to root folder, and then all the other files besides public folder to the new created ...

Stream cipher (A5/1), how it works?

UPDATED I have been searching a week ago for a clear example in how the A5/1 works,however the idea still not insufficient to me.In the classic cipher methods, I use to have plain text and key, and ...

Decrypt “Saved Password” from Chrome in C

As a part of a project, we are trying to decrypt saved password in Google Chrome. After little digging we understand that Chrome encrypt the password using CryptProtectData function which let you ...

What kind of encryption is this…I never seen before [on hold]

here the code.................. defined('_VALID_MOS_') or die('Restricted Access'); $_Lic=' > ilvU0M7sVEl>mo48B5N>DxVPy3OR]xRiE[PHA5p>u0Y[e>rFs95ylol2maqPBqn/56rFB0BsY>kM0= ...

HEX Encryptation for Strings - TCP Packets

Gents, I'm still working on a TCP project. Now, I've a question regarding data encryptation over TCP packets. Before ask, I will give a quick explain about my client/server. My server works with 3rd-...

RSA Encryption - can e be the same as p or q? [on hold]

I just wanted to know whether in RSA, can the encryption exponent 'e' be the same value as the two primes p or q. I am aware of the rules for choosing e i.e. e < n and have no common factors with ...

Invalid length for a Base-64 [on hold]

I used one method to encrypt a string. The string was "1", but in decryption, I get this error: Invalid length for a Base-64 char array or string This is the method for decryption: public string ...

How to Access Decrypted Partition

I'm having problems accessing the data on my laptop, which is all in an encrypted, boot partition (I'll be partitioning the OS out after this headache). Right now, I'm booting from a USB stick with ...

Encrypt specific (sensitive) properties before storing on to session

We use Redis session provider and data we store on to session may include privacy data such as DOB or membershipId. One option (one I've implemented) is the encrypt whole class e.g. membership and ...

Generating secret key for AES 256 Encryption from Keychain

I am working on a project where I need to encrypt/decrypt some data locally. I am using RNCryptor for the encryption and decryption process. To do that I need to use key, i don't want to define that ...

The Caesar cipher works only for uppercase letters (CS50)

My program works only for uppercase letters and I can't figure the problem out. Everything seems to be fine, but it actually isn't. This is a task from CS50 course (week2), by the way. Here's my code: ...

iOS App with encryption submit issue

I my application I use sha256 encryption (actually it's a hash function, so you can't decrypt it). For each request to server I need to make such a string "param1|param2|param3" and encrypt it with ...

Issue connecting through SSH

I'm trying to connect to my host (Joyent) through SSH (using Windows 10). Here's what I have done: I used PuttyGen to generate the keys (SSH-2 RSA). The public key is the following: ssh-rsa ...

Equivalent code for System.Security.Cryptography in Java

I'm trying to convert the following C# code to Java, the code is using .NET library (System.Security.Cryptography), I want a work around to get the same results using Java: internal static class ...

C Vigenere Cipher Not Printing

I've been tasked with creating a vigenere cipher, but my program is not printing out anything. Thing is, I'm not sure where the problem is; is the file not reading in, is my logic incorrect, etc.? Any ...
Translating... 0%