encryption

Key verification in AES

大城市里の小女人 提交于 2020-03-18 15:40:41
问题 If the user enters a wrong key for AES decryption, some garbage data is generated. I want to verify the given decryption key and throw an error if the key is incorrect. How can I verify the key entered by the user? 回答1: Use an HMAC. The basic premise is that you run the plaintext through an HMAC, add the result to the plaintext and then encrypt. Then do the opposite when decrypting. If the plaintext and HMAC result match, then you know you've got the correct key. OR, if you want to know prior

Key verification in AES

女生的网名这么多〃 提交于 2020-03-18 15:40:19
问题 If the user enters a wrong key for AES decryption, some garbage data is generated. I want to verify the given decryption key and throw an error if the key is incorrect. How can I verify the key entered by the user? 回答1: Use an HMAC. The basic premise is that you run the plaintext through an HMAC, add the result to the plaintext and then encrypt. Then do the opposite when decrypting. If the plaintext and HMAC result match, then you know you've got the correct key. OR, if you want to know prior

Need help using the Crypto++ library for AES256, their documentation isn't written all that well [closed]

时间秒杀一切 提交于 2020-03-18 10:22:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 days ago . so I have a project for a dll file already setup and everything, what I'm trying to do is create a function inside it that basically handles decrypting/encrypting the contents of several files. I'm currently pushing the file contents into the function as a const char*, file sizes

Need help using the Crypto++ library for AES256, their documentation isn't written all that well [closed]

本秂侑毒 提交于 2020-03-18 10:21:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 days ago . so I have a project for a dll file already setup and everything, what I'm trying to do is create a function inside it that basically handles decrypting/encrypting the contents of several files. I'm currently pushing the file contents into the function as a const char*, file sizes

Google play store messages encryption policy

心已入冬 提交于 2020-03-18 09:49:06
问题 Consider an application that transfers xml messages with custom encrypted content through a tcp based protocol. Is there any policy from google play that enforces us to use a specific kind of encryption? Does google play forces us to get encryption export certificates for the encryption used (Twofish)? Should we contact with google play and inform about our application? 回答1: To publish an app on Google Play you need to agree that you follow U.S export regulations. This means if your app is

I have an encryption algorithm, but I am unsure how to reverse the modulus that was performed. How do i do this? [closed]

橙三吉。 提交于 2020-03-17 03:23:55
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 23 hours ago . I have this encryption code, but I am unsure how to invert the modulus used in the code: from PIL import Image flag = Image.open(r"flag.png") img = array(flag) key = [41, 37, 23] a, b, c = img.shape for x in range (0, a): for y in range (0, b): pixel = img[x, y] for i in range(0

How to decrypt column in SQL Server that was encrypted by .Net code

瘦欲@ 提交于 2020-03-05 04:33:07
问题 I would like to create a stored procedure that decrypts a column that was encrypted by a .Net library. This is the C# code the encrypts the data: public static byte[] Encrypt(string plainText, byte[] salt, byte[] key) { using (var aesManaged = new AesManaged()) { if (key.Length != aesManaged.Key.Length) // I use this to toggle encryption on/off return Encoding.UTF8.GetBytes(plainText); if (salt.Length == 0) throw new ArgumentException("salt.Length must be > 0"); byte[] hash; using (var sha =

Excel password removal

陌路散爱 提交于 2020-03-03 10:32:06
问题 We receive Excel workbook files every day which are password protected with the same password. We know this password. Is there a utility or method to remove password protection on these workbook files without invoking Excel.exe or the Excel object. Our goal is to take Excel out of the process and utilize SpreadsheetGear in VB.net. However, SpreadsheetGear can only unprotect worksheets not workbooks. Thanks 回答1: Are they XLS or XLSX files? for XLSX apparently you can use the RMS SDK to work

Passwords and different types of encryption

孤者浪人 提交于 2020-03-03 01:08:46
问题 I know, I know, similar questions have been asked millions and billions of times already, but since most of them got a different flavor, I got one of my own. Currently I'm working on a website that is meant to be launched all across my country, therefore, needs some kind of protection for user system. I've been lately reading alot about password encryption, hashing, salting.. you name it, but after reading that much of articles, I get confused. One says that plain SHA512 encryption is enough

Passwords and different types of encryption

天涯浪子 提交于 2020-03-03 01:08:05
问题 I know, I know, similar questions have been asked millions and billions of times already, but since most of them got a different flavor, I got one of my own. Currently I'm working on a website that is meant to be launched all across my country, therefore, needs some kind of protection for user system. I've been lately reading alot about password encryption, hashing, salting.. you name it, but after reading that much of articles, I get confused. One says that plain SHA512 encryption is enough