Questions tagged [aescryptoserviceprovider]

68 questions
0
votes
1 answer

Message box is not showing for displaying Decryption Data

I have implemented AES Algorithm using this website. https://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx After Encrypting the value is converted in to string and send to Database. which was successful.…
0
votes
2 answers

Implement AES encryption in Image

if (i < 1 && j < textBox3.TextLength) { char letter = Convert.ToChar(textBox3.Text.Substring(j, 1)); // int value = Convert.ToInt32(letter); //Encryption Mechanism here AesCryptoServiceProvider aesCSP = new…
0
votes
0 answers

Best way to add MAC to AesCryptoServiceProvider encryption?

Reading up on encryption best practices, I see that it is recommended to add MAC to a AES encryption. I'm using AesCryptoServiceProvider because I need to be FIPS compliant. This means, that I'm doing something like this: private static byte[]…
Werner
  • 1,229
  • 1
  • 10
  • 24
0
votes
1 answer

mono - c# - System.Security.Cryptography.AesCryptoServiceProvider could not be loaded, used in System.Core

I use mono to execute console application on unix machine. When i start application I got error System.Security.Cryptography.AesCryptoServiceProvider could not be loaded, used in System.Core Inside my app I use AesCryptoServiceProvider class of…
ciro
  • 771
  • 1
  • 8
  • 30
0
votes
1 answer

nodejs aes256 encrypt is different from online aes256 encryption tool

I encrypted word HelloWorld using nodejs-aes256 https://www.npmjs.com/package/nodejs-aes256 with key apple the output was 1ivBqj+nVPcHvZjQlx7Di0SoxV49bNpWtog= then I encrypted same word with same key using online tool http://aesencryption.net/ the…
auhuman
  • 962
  • 2
  • 13
  • 34
0
votes
1 answer

Force generation of Initialization Vector 32 bytes (16 characters) in length

I want to generate an Initialization Vector (IV) for my AES encryption method. I have defined the key size as 256 (since I am using AES) so my IV needs to 32 bytes in length (256 / 8). I wish to store the IV as a string representation so using…
webworm
  • 10,587
  • 33
  • 120
  • 217
0
votes
1 answer

AesCryptoServiceProvider decrypt creates corrupted file

I'm writing a web application which allows users to upload files and download files. Files like doc, or jpeg are allowed. The files are encrypted in uploading process and decrypted in downloading process. I use AES as the algorithm, with one key…
0
votes
1 answer

AES Encrypt / Decrypt byte[]

I am trying to encrypt a byte[] using the following methods but when I decrypt it my byte[] is bigger than when I started and I think its to do with padding but I am not sure how to solve it. The method isnt finished yet (I know its bad to append…
0
votes
4 answers

AesCryptoServiceProvider not part of SymmetricAlgorithm?

I have a quick little app that steps through the possible symmetric encryption methods. I get them with the following line: private static List GetAlgorithmTypes { get { return…
Phil
  • 1,852
  • 2
  • 28
  • 55
0
votes
1 answer

AES encryptor not working

I am attempting to get this AES sample code working. However I am not getting anything returned to my cipherText variable. I am not getting errors, just nothing returned. What am I doing wrong here? public byte[] key { get; set; } public byte[] IV…
Anthony
  • 913
  • 3
  • 23
  • 32
0
votes
2 answers

AesCryptoServiceProvider throws Cryptographic exception

I am doing some project for school. I am having server client communication with TcpClient and TcpListener. At the begining I create AES key on server, and then send it to client using RSA. I have no problems here. However, when I try to encrypt…
n32303
  • 831
  • 1
  • 10
  • 25
0
votes
1 answer

AES128 decoding problems

I have AES128 crypted web-services I use the AFHTTPRequestOperationManager and I receive the good response ( the response is crypted string ) When I try to decript the string I look the wrong response This is my code: NSString *string = [[NSString…
user1784067
0
votes
0 answers

wrong final block length in AESCrypt

Am using AESCrypt for encrypt and Decrypt the Email address stored in the db. Encryption is working. But during Decryption wrong final block length error was occur. Error OpenSSL::Cipher::CipherError in DashboardUsersController#index In User…
Raj
  • 950
  • 1
  • 9
  • 33
0
votes
1 answer

AES C# Encryption Decryption FIPS

I'm trying to do the following test to return results that should return a specific cipher. They provide the Key, IV and Plaintext string as seen below. But I am getting "Specified initialization vector (IV) does not match the block size for this…
moto_geek
  • 510
  • 5
  • 14
0
votes
1 answer

Unable to decrypt AES128 in iOS

#import "ViewController.h" #import @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically…
Divyam shukla
  • 2,038
  • 14
  • 18