I have an encrypted bit of text that I need to decrypt. It's encrypted with AES-256-CBC. I have the encrypted text, key, and iv. However, no matter what I try I just can't seem to get it to work.
The internet has suggested that mcrypt's Rijndael cypher should be able to do this, so here's what I have now:
function decrypt_data($data, $...
I have the following function in Ruby that decrypts a bit of data:
def decrypt(key, iv, cipher_hex)
cipher = OpenSSL::Cipher::Cipher.new('aes-256-cbc')
cipher.decrypt
cipher.key = key.gsub(/(..)/){|h| h.hex.chr}
cipher.iv = iv.gsub(/(..)/){|h| h.hex.chr}
decrypted_data = cipher.update(cipher_hex.gsub(/(..)/){|h| h....
I'm generating data to send from a Ruby stack to a PHP stack. I'm using the OpenSSL::Cipher library on the Ruby side and the 'mcrypt' library in PHP. When I encrypt using 'aes-256-cbc' (256-bit block size) in Ruby I need to use MCRYPT_RIJNDAEL_128 (128-bit block size) in PHP to decrypt it. I suspect the Ruby code that is broken, becau...
This question is a continuation of my last one, regarding How to make Ruby AES-256-CBC and PHP MCRYPT_RIJNDAEL_128 play well together. I've got that working now, but I'm still struggling to go the other direction. The PHP generated cryptogram appears to have all the information that was provided, but I cannot get the Ruby code to decry...
I am able to encrypt with AES 128 but with more key length it fails.
code using AES 128 is as below.
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
import java.io.*;
/**
* This program generates a AES key, retrieves its raw bytes, and
* then reinstantiates a AES key from the key bytes.
* The reins...
My question relates to aes 256 bit encryption in browser post. I want to integrate an intranet application with salesforce and want the data transfer between them should be aes 256 bit encrypted so that the client gets utmost security. Can anyone give me ideas as to how it can be implemented? the integration b/w them will also be through...
When I decrypt something encrypted with this function, the decrypted version doesn't equal the original.
class AES256encryption {
var $secret = '';
var $cipher_key = '';
function AES256encryption($secret='') {
if (empty($secret)) {
global $secret;
if (empty($secret)) {
...
Every time I run this and encrypt, the output is variable, and when I attempt to decrypt
I get "Padding is invalid and cannot be removed." Been fighting with this for a day or two now and I am at a loss.
private static string strIV = "abcdefghijklmnmo"; //The initialization vector.
private static string strKey = "abcdefghijklmnm...
Does a binary encrypted string could contain a 'space' or 'carriage return'? What's the best way to put a separator between two encrypted byte[] arrays?
...
Hey all, I am using http://pastie.org/966473 as a reference as all I need to do is encrypt something using AES256 encrypting. I created a class and put the implementation in the pastie on top of the implementation for my class.
@implementation
//pastie code
@end
@implementation
//my class code
@end
In my class code I create a NSMut...
Can anybody please let me know, How open an AES encrypted .zip?. I need an encryption method should be 128-bit or 256-bit AES. As well as this should be a PHP process.
any references...appreciable.
...
I'm trying to implement the Bouncy Castle encryption library in a .Net project, but am not finding a lot of .Net-related documentation. The class/method structure isn't even close to the ample Java-related examples.
Does anyone have some good .Net examples for this?
Thanks.
...
Hi
I am looking to apply SQL column level encryption using symmetric keys. The initial steps needed to create the Database Master Key, Certificates and Symmetric Keys seems straight forward and I have tested encrypting/decrypting data using Symmetric Keys successfully.
However, once the data is encrypted I don't know how best to query...
I need to decrypt a AES-256-EAX encrypted string from Java in Ruby.
Ruby's built-in OpenSSL::Cipher provides functionality to decrypt AES-256-CBC, when I try to use AES-256-EAX, its throwing that the algorithm is not supported.
Is there any library/gem out there that decrypts AES-256-EAX string in Ruby?
Thanks in advance.
...
Disclaimer: this is just out of curiosity; I'm no expert at all when it comes to cryptography.
Suppose a 256-bit key is composed of the following (UTF-16) characters:
aaaaaaaabbbbcccc
Futher suppose that an attacker knows the last 4 characters of the key is cccc.
Does this knowledge make it easier for an attacker?
My guess is that it ...
Hello,
I have been implementing AES onto my website for security and I have ran into a glitch/problem to which I am un-able to find an answer and I find it quite bizzare.
I BELIEVE I know where it resides but I don't know how/where to do the fix.
Currently I have PHP 5 and the latest MySQL running on my local server.
Here is a small...
I'm currently experimenting with both public-key and personal file encryption. The programs I use have 2048 bit RSA and 256 bit AES level encryption respectively. As a newbie to this stuff (I've only been a cypherpunk for about a month now - and am a little new to information systems) I'm not familiar with RSA algorithms, but that's not ...