473,503 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mcrypt - problem encrypting special characters

Hi,

I'm not sure whether this is a known or documented issue (I could'nt
turn anything up, but maybe I'm not looking hard enough), but I seem to
be have a problem encrypting and decrypting entries with special
characters - namely the '@' symbol.

For example I can encrypt and decrypt a name or an address - however,
if I try this with an email address that contains the '@' symbol, such
as:

no****@nobody.com

what I get when I decrypt this is:

n

Just the first letter of the entry.

I have been using the GOST cipher, so I'm wondering if it is related to
this cipher, or whether there is a problem with special characters in
general.
Thanks
Neil.

May 22 '06 #1
3 3179
ne**@invidion.co.uk wrote:
Hi,

I'm not sure whether this is a known or documented issue (I could'nt
turn anything up, but maybe I'm not looking hard enough), but I seem to
be have a problem encrypting and decrypting entries with special
characters - namely the '@' symbol.

For example I can encrypt and decrypt a name or an address - however,
if I try this with an email address that contains the '@' symbol, such
as:

no****@nobody.com

what I get when I decrypt this is:

n

Just the first letter of the entry.

I have been using the GOST cipher, so I'm wondering if it is related to
this cipher, or whether there is a problem with special characters in
general.
Thanks
Neil.


Never used that one, Neil. Where did you get the script? Did you try asking there?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 22 '06 #2
This is not a third-party script - I'm just using the inbuilt PHP
functions and supported ciphers.

May 23 '06 #3
ne**@invidion.co.uk wrote:
This is not a third-party script - I'm just using the inbuilt PHP
functions and supported ciphers.


OK, I haven't use the GOST cipher before, but haven't had any problems with the
encryption/decryption functions.

Can you post your code?

Also - in this group, please copy the relevant parts of the message you're
replying to. Quite a few of us use a real news reader, not google groups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3293
by: Matt McKay | last post by:
I've written a php page which allows users to type in a text string and a key, then choose from a dropdown menu of encryption/decryption cyphers, and a method (encrypt, decrypt). The whole thing...
1
9033
by: BKDotCom | last post by:
I'm writing an app that will use blowfish encryption.. PHP's mcrypt will be used if available. if not, I'll use PHPmyadmin's blowfish.php library. The problem is I can't figure out what...
4
27998
by: believein | last post by:
Hi all, I installed PHP thru the XAMPP package on my windows machine. The problem, I couldn't solve, is that the mcryppt funcs don't work. It return the following message: Call to undefined...
5
3051
by: sylvian stone | last post by:
Hi, I'm getting some strange errors that I cannot pin down: Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 7, needed: 8 in...... This is strange because the data is...
3
1965
by: Sophisticado | last post by:
Greetings I have a script in which I am collecting sensitive information via a form (METHOD=POST) and encrypting the posted variable (format = BLOB) using mcrypt, then saving it in a MySql...
0
2017
by: E. Recio | last post by:
Long story short. I want to use Mac OS/X and PHP. I have a db with passwords stored under Linux using the crypt("foo", "$1$".$salt."$); scheme. This means that crypt should execute a CRYPT_MD5...
3
8755
by: =?UTF-8?Q?Ahmad_=E3=8B=A1_Baitalmal?= | last post by:
Hi, I'm having a hard time getting python-mcrypt extension to build. I installed libmcrypt with --prefix=/usr and I checked that the library exists -rwxr-xr-x 1 root wheel 352K Sep 19...
3
10176
KevinADC
by: KevinADC | last post by:
Purpose The purpose of this article is to discuss the difference between characters inside a character class and outside a character class and some special characters inside a character class....
7
2392
by: ziycon | last post by:
I'm encrypting data and when i try to insert it into the mySQL database it wont enter it and throws an error, i think its to do with these strange characters, they are a little box with four...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4685
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.