The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
get last characters in ksh meghana Shell Programming and Scripting 5 04-11-2008 01:11 PM
Problem with including foreign characters in Lex rule Nathalie1 High Level Programming 1 01-31-2008 07:45 AM
Add few characters er_aparna Shell Programming and Scripting 7 08-17-2006 07:53 AM
characters ô ö à é è Castelior Shell Programming and Scripting 1 04-19-2006 07:52 AM
problem with Unicode characters insertion suman_jakkula AIX 0 02-10-2006 09:20 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Sep 2007
Posts: 21
Problem with the Characters!!!

Hi all,

We are porting an application in AIX to windows. If we enter password, it will be encryped and give some characters. (for examplle: M{\d6). If we do the same operation in windows the character after encryption is totally different from what we are getting in Unix. Can anybody help on this?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Sep 2007
Location: Koblenz, Germany
Posts: 579
Help on what? IMHO it's using a different algorithm to encrypt the pw. What's the problem with that? Need a bit more info.
Reply With Quote
  #3 (permalink)  
Old 07-23-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,032
Probably different character maps? Did you write the encryption algorithm yourself or do you rely on some sort of library? If the latter is the case maybe the algorithms are different or just use a different "seed" to come to different results.

A good encryption algorithm gives to different results even with the same input - this way you have no way to get the input from the result without knowing the algorithm and knowing the secret information. An algorithm which gives, for instance, a "B" for every "A" is more likely to be compromised than one which gives a "B" first and a "C" for the next pass and an "X" for the next aso..

I hope this helps.

bakunin
Reply With Quote
  #4 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Sep 2007
Posts: 21
Hi Zaxxon,

Thanks for your reply. I am using Blowfish algorithm to encrypt the password in unix side. If i decrypt the password in AIX it gives for example M¼^Û«PV. But if i decrypt the same password in windows it gives something like M|#/{PV. Which means it is not correctly decrypting the special characters. Is that anything related to encoding?
Reply With Quote
  #5 (permalink)  
Old 07-23-2008
Registered User
 

Join Date: Sep 2007
Posts: 21
Thanks bakunin, Can i have more information on this. Please see my quick reply. I have mentioned clearly there.
Reply With Quote
  #6 (permalink)  
Old 07-23-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,032
With the additional information given it looks like there is a character encoding mismatch. Maybe the AIX side is using ISO-Latin-1 and the Windows side IBM-850 or something such?

I hope this helps.

bakunin
Reply With Quote
Google UNIX.COM
Reply

Tags
character maps, encoding

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0