Newest encryption Questions

Q&A for professional and enthusiast programmers

C# Decrypt a SOAP Message Encrypted with an X.509 Certificate

I am using WebClient to send SOAP messages with xml, but things changed and i need to use Client Certificate Authentication, when i receive message it looks like as encrypted, see attached picture. ...

How to remove .plist from library-preference folder in objective-C

When I run My app I figure out that in library-preference, Xcode generate the .plist that everyone can see that and also can modify that, I found out the way how to remove the cache but I couldn't ...

Unable To Convert C# Encryption/Hashing into Java Encryption/Hashing for Android

i currently have a code for making hashes for my website which hashes with SALT so the password is non reversible... currently it is 100% working for my website which is coded using ASP.NET(C#) ...

IOS swift TwoFish encryption algorithm [on hold]

Hi i would like to encrypt and decrypt a string in my IOS app using TwoFish algorithm. I am doing so in my android app using gnu.crypto.cipher.Twofish , but i would like to know is there any good ...

Decrypting with AES256CBC Library doesn't return same value?

I'm trying to implement aes256 security to both Android, iOS and Web. In iOS part I'm using this library. But when I try to decrypt text with same password on this website or any other website or with ...

File.Readalltext stops after it detects a space

Im working on a VB.NET app to encrypt text with a custom key. it writes the encrypted text to Documents\FEDS\text.txt and reads it into a textbox. For instance, if i want it to encrypt Autism Has ...

most popular javascript encryption library

I know that client-side encryption would raise a lot of criticism, like I've seen on other threads. Anyway, I'd like to implement such a feature on a web based application I'm developing in order to ...

Is storing an encrypted user id in a session variable a good practice?

In this PHP script, once the user authenticates himself with his username and password, his user id is stored as an encrypted session variable to be identified throughout the web app. I was wondering ...

When does the builtin encryption from Android takes effect? [on hold]

When you shut down your device or already as soon as you lock your phone (Lockscreen)?

How can I verify a users password through login if the password is encrypted using a random salt? [duplicate]

First time attempting to build a website and most issues so far i have been able to work out. However, once I read up on encrypting passwords I may have gone a little above and beyond but I thought ...

C# AES decrypted binary file size doubled. Only text files worked fine

When encrypting and decrypting text files, the code works fine. But when encrypting binary and zip files, file size almost doubled after decryption. For example, a 2.06mb bin.exe became 3.69mb after ...

Java application uanble to encrypt and upload the docx file containing text as well as figures on dropbox

I am working on a project. Dynamic Group Sharing in Public cloud computing Dropbox. Were a group of people share data by encrypting it on cloud. This is a standalone application. The below code ...

How secure is jasypt?

I have recently made an app that uses jasypt APIs for encryption and decryption of text and Passwords. My question is, if the hacker also uses or knows about jasypt, would it be possible for him to ...

Error:CS1061: 'Encrypt' does not contain a definition for 'Encrypt' and no extension method

I am developing using asp.net/c# and when trying to type this code: FileUpload1.SaveAs(input_image); this.Encrypt(input_image, output_image); I faced a problem that is: 'Encrypt' does not contain a ...

What is the cause of “The signature or decryption was invalid”? Java SOAP

When I try and send a signed Java SOAP request as detailed below I get the error "The signature or decryption was invalid" sent back to me. What does this mean and what causes it? I also get the ...

I want to move to data security field. From where i can start? [on hold]

I am currently working as a PHP developer and want to switch to data security, but don't know where to start. I have basic understanding Linux environment and c,c++ programming Strong Database ...

sdcard encryption for security

Am using Raspberry pi 3 and kernel version Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux. How my sdcard image encrypting, it should be open in boot time , this is ...

mcrypt_decrypt is returning a null repsonse

I can encrypt strings in php but I cannot decrypt my strings in php when calling the decrypt function, I get a null response. What am I doing wrong? my code is below. <?php $txt = "Hello"; ...

Chat server design (end-to end encryption)

Good day! I have several questions about chat server design - maybe someone will point me to right direction. I have some experience in cryptography and client-side programming in c++ and java, but ...

bitcoin private key encoding/encryption with the e,f ,j ,g and i letters pattern in the cipher [on hold]

bitcoin private key encoding/encryption with the e,f ,j ,g and i letters pattern in the cipher. cipher : wuwj38sjdnDujeiewikjwjdfoiwkjfdoiewjmfewmfe cipher length : 43. bitcoin private key : ...

File read goes into infinite loop when file to be read is already open

I wrote this Code to make a journal or Diary. It takes input, encrypts it and stores it in file called "yourDiary.txt". When asked to decrypt, it asks for password(currently "pwd"). If Password ...

Disable Encryption Laravel 5.1

I'm working on a application that requires a login. Actually it's working, but the login check the encrypted password. Talking with the client it was agreed that the encrypted password was not ...

Decrypt AES in C++ Example

I need some help with decrypt a char array in C++ using AES decrypt with Open SSL library. I already done encryption mode and works fine, but decryption is not working. This is the Encrypt Function: ...

Cross Platform Encryption and Decryption

Is there any cross platform AES 256 Encryption and decryption that supports both iOS(Swift) and C# application. Apart from https://github.com/Pakhee/Cross-platform-AES-encryption. I am trying to ...

AES 256 bit encryption with Rfc2898DeriveBytes

I've run into a confusing use of AES with Rfc2898DeriveBytes. Here's the code that I've found.... public static string Decrypt(string encryptionKey, string cipherValue) { byte[] ...

Sending encrypted string between WebService and APP

I've read among internet that the most secure way to share information between WebService and an APP is to use asimetric RSA encryption. Keys used by the WebService: Public key of web service, ...

How to find all possible combinations of the alphabet with the length of 8 [on hold]

What is the best way to find all possible combinations of the English Alphabet when the length is fixed to 8 characters? No uppercases, no digits, no special characters. Thanks.

Cannot decrypt TLS 1.2 packets with Wireshark [duplicate]

I've been discovering the Wireshark program for a few days now in an internship and i'm now tasked in studying http request between the client and the server on a given website. Unfortunately every ...

Im trying encrypt some text using a fucntion in php

I found a tutorial online on how to encrypt strings in php but when I call the function and try echo the processed data I'm getting 500 internal error. Here is my code below. <?php $...

Authenticate users using SHA256 in Mysql using asp.net

I have hashed the passwords using SHA256. I have generated a random salt generator which every time generates a random salt which is added up to the password, which then gets encrypted and is being ...

How do I make a Python crypter and work with RAM? [on hold]

For my new job I'm doing a lot of pentesting. I coded some exploits in python and created reverse shells, but I'm seeing an increase in antivirus detections. So what I'd like to do is create some kind ...

php Substitution Encoding Algorithm using cesar cipher

hello i am stack with this exercise as part of a test, how can i solve it or hint to solve it /** * Class SubstitutionEncodingAlgorithm */ class SubstitutionEncodingAlgorithm implements ...

Encryption in Web service not giving the same result compared to the one on the main project

I am trying to pass an encrypted string from my web service to my main project but when I am trying to perform decryption, it returns "Invalid length for a Base-64 char array or string." because the ...

Zend mcrypt-aes without special characters in the encrypted text

I am using the zend mcrypt function for the encryption of a text. The encryption is done using the code below, use Zend\Crypt\BlockCipher; use Zend\Crypt\Symmetric\Mcrypt; $blockCipher = new ...

javascript code dencryption

I know that this is not quite a question, however i've been looking at some websites and seem script as below:- var _0x34a8=["\x67\x6F\x6F","\x65\x78\x70\x69\x72\x65\x73","\x6E\x75\x6D\x62\x65\x72"...

How to Decrypt md5 Password in java [duplicate]

I am trying to decrypt the password which is encode as md5. gone through google and other sites and got to know it is not possible . but if some one can help me out on this. private static String ...

How to run a C implementation of AES encryption algorithm to run on Cuda GPU in visual studio [on hold]

Need help in compiling and running a C based project to run on cuda gpu. I failed to run the source code in visual studio 2015. how should i run the project in cuda versio 8.0 environment. Source ...

C++ encryption data success, while Python decryption data shows messy code?

I need to encryption the client's log , so I write a C++ Code to encryption the log, after encryption success,I save the log data . Finally I need to decryption the log data, so I try to use a Python ...

Database encryption implementation [on hold]

I've implemented my own relational model database(link: DeepDataBase) based on B+ tree indexing. It supports basic database queries like CREATE,SELECT,INSERT,DROP. Now, I want to implement an ...

What is the difference between These method below? [on hold]

i am learning encryption in java and used these two tutorials yet This from Code2learn and This from howtodoinjava.com when i try to encrypt hello from these example code both gives different ...

Information on ssh [on hold]

I have been using ssh for a long time and out of curiosity I want to know a bit more about it, for this I referred to online material and quite a things are clear than before. As per the various ...

Decrypttion fails on S/MIME enveloped message with OAEP key encryption?

With Java and BouncyCastle I am able to decrypt lots of S/MIME enveloped messages. But when the key encryption algorithm is 1.2.840.113549.1.1.7 (id-RSAES-OAEP), the decryption fails (stack trace at ...

com.itextpdf.text.exceptions.InvalidPdfException: key invalid in message when decrypting pdf encrypted with adobe dc pro using pkcss11 usb token

I am using iTextpdf to encrypt/decrypt PDF using pkcss11 usb token certificate. Following is my encrypt and decrypt methods public void encryptPdf(String src, String dest) throws ...

how can we improve message authenticity in ad-hoc networks , without using traditional methods of encryption and digital signatures

usually we are using public-key encryption, or functional encryption along with ECDSA signatures to provide message authenticity and integrity in Ad-hoc networks, but both these techniques have ...

How to decrypt C# AES Encrypted data in Python?

I have to decrypt the encrypted data with Python. The problem is that my C# code does not work to decrypt data encrypted by the Python code from another programmer. The Python code from another ...

Decryption for AES GCM No padding writing a blank file in java

We have a file encrypted with AES GCM 128 bit key. The problem is that the decryption function is outputting a totally blank file. I can't figure out the reason behind it. It doesn't give me an error ...

How to proxy re-encryption in C# or Java?

How can I implement Proxy Re-encryption in C#.NET or Java. I'm confused, is there need to decrypt data first and then encryption for other person. is it called proxy-re-encryption. Am I right? Are ...

How to get original value of encrypted cookies in laravel 5.4

I am try to get the value of encrypted cookies but not getting the original value. if(!isset($_COOKIE['email'])): Cookie::queue(Cookie::make('email', $uid, time() + (86400 * 30))); ...

User can access my app's database on Android device

Android has a great problem. Everybody can access to my app's database and I couldn't find a way to solve it. If you know a way to encrypt database file, please tell me.

How to fix mcrypt character length on PHP Class

I'm here to explain my website and show the "bug" or "error" that appears to my web. Some days ago I did a page, the topic is encrypt and decrypt with AES, using the php class called "mcrypt". Here'...
Translating... 0%