mbedtls_aes_crypt_ecb( &aes, MBEDTLS_AES_ENCRYPT, (const unsigned char*)plainText, outputBuffer); To finalize the implementation of the function, we free the AES context we used before by calling thembedtls_aes_freeand passing again as input a pointer to the context. mbedtls_aes_free( &a...
mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $bindkey, $text, MCRYPT_MODE_ECB ) I dont know why do you need a sha1 when I just want want decrypt a ECB mode string local aes_default = aes:new(key,nil, aes.cipher(128,"ecb"),aes.hash.sha1)Activity...