FAQ Database Discussion Community


Passing a key in a SecByteBlock to an algorithm?

c++,blowfish,crypto++
I am currently working on a Cryptopp encryption project and would need to pass a key to a Blowfish encryption algorithm. If I understand correctly I would need to edit these 2 lines: SecByteBlock key(Blowfish::DEFAULT_KEYLENGTH); prng.GenerateBlock( key, key.size() ); My idea would be to pass a string variable (like ekey)...

Is there a way to use commutative encryption in php?

java,php,encryption,blowfish,commutativity
I have used the encrypt and decrypt functions from this answer to implement message passing using Three-pass protocol with the Blowfish cipher. And I tried using commutative ecryption/decryption. That is, $tmp = encrypt($input, $key1); $tmp = encrypt($tmp, $key2); $tmp = decrypt($tmp, $key1); $dec2 = decrypt($tmp, $key2); But it does not...

Blowfish encryption and decryption across c sockets

c++,sockets,encryption,endianness,blowfish
I'm using the following implementation of blowfish (with some stuff cut out of the middle) to encrypt and decrypt messages. I am attempting to encrypt a message on a big endian machine (SunOS 5.10), and then send it over a socket to a little endian machine (linux). I can encrypt...

Saving Secret key to derby datase

java,database,derby,blowfish,secret-key
I am using blowfish algorithm to encrypt images and decrypt images. My programs works without any problem but i am trying to do a minor modification to it. Currently the secret key which is generated is only temporarily saved in the secret key variable but i want to save it...

PHP and Objective C Blowfish Encryption Encoding different

php,ios,encryption,cryptography,blowfish
The iOS and Android project I'm working on requires us to open a webview connecting to a 3rd party website. The problem is that the URL we call must be accompanied with some parameters encrypted using Blowfish with ECB mode. This 3rd party uses PHP to encrypt/decrypt the parameters and...

Comparing two encrypted string with blowfish - php [duplicate]

php,password-encryption,blowfish,crypt
This question already has an answer here: PHP Crypt() Compare two crypted strings 5 answers I generated an encrypted string with using blowfish encryption function (crypt()) in php and stored it in database. How can I check correctness of submitted password then? For eg. during registration, I defined my...

Handling key for image decryption in AWT application

java,image-processing,encryption,blowfish
I have the following code for decrypting an encrypted imaged. My problem is if i do the encryption of the image and the decrpytion of the image at one go, it does it without a problem. But if i encrypt the image and wait for some time and try to...