Category "aes"

LINK Error when trying to use OpenSSL evp aes 256 c++

i have a lot of LINK error when i'm trying to use the evp aes encryption template code from OpenSSL documentation : https://wiki.openssl.org/index.php/EVP_Symme

Trying to print hex string with CryptoJS

I am trying to use CryptoJS to encrypt something and then generate a hexadecimal string of the encrypted text. function EncryptAES(text, key) { var encrypted

zipfile: Adding files to encrypted zip [duplicate]

I have an encrypted ZIP file and for some reason, any password I feed it doesn't seem to matter as it can add files to the archive regardless.

javax.crypto.BadPaddingException: error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT

I'm storing AES decryption key in AndroidKeyStore to decrypt data from SQLiteDB. Unfortunately, sometimes I get this error (Any android device and any API) rare

How to generate the output in hexadecimal in Openssl?

Finally I am able to get the output in base64 format by using the "-a" switch; there is any hexadecimal switch that I can use? echo '0: 63616e74676574746869733

Create secKey form data/hex/bytes using SecKeyCreateWithData give nil

I'm new to encryption. i want to create public seckey from data but i always get nil. Please help me. I need this public key as seckey to create a shared secret

Using std::string for key with AES encryption in Crypto++

I am using Example of AES using Crypto++. I want to encrypt with this key: std::string key = "mykey"; Allocate memory for key byte key[ CryptoPP::AES::DEFAU

Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96

I had a tomcat server with Spnego SSO setting, it works well with no issues. Now I want to add an Apache server in front of it to enable SSL. The Apache server

Cannot find key of appropriate type to decrypt AP REP - AES256 CTS mode with HMAC SHA1-96

I had a tomcat server with Spnego SSO setting, it works well with no issues. Now I want to add an Apache server in front of it to enable SSL. The Apache server

Irreducible polynomial in AES and GNU Octave

In the Rijndael AES proposal in section 2.1.2 they have chosen m(x) = x^8 + x^4 + x^3 + x + 1 and said it is an irreducible polynomial. This polynomial correspo

Is there any difference, if I init AES cipher, with and without IvParameterSpec

I was wondering, is there any difference, if I init AES cipher, with and without IvParameterSpec? With IvParameterSpec SecretKeySpec skeySpec = new SecretKeyS

Getting Started with crypto++ decryption with AES

I'm trying to learn a bit about cryptography and am trying to use AES decryption with the crypto++ library in c++. I have a ciphertext string and a key string.

How to convert hexadecimal string to an array of UInt8 bytes in Swift?

I have the following code: var encryptedByteArray: Array<UInt8>? do { let aes = try AES(key: "passwordpassword", iv: "drowssapdrowssap") encrypt

Invalid argument(s): Input buffer too short AND Invalid or corrupted pad block

I am trying to encrypt and decrypt chat messages for my app using this code String decrypt(String encrypted, {String key, String iv}) { final key = Key.fromUt

What Salt size and position for AES 256?

I haven't written encryption in a while and have forgotten some stuff. I remember that to have the output be different for the same data using the same key, I w