07-23-2008
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
10 More Discussions You Might Find Interesting
1. AIX
hi,
I have a problem with unicode chars ( chinese, japanese etc ) insertion using sqlplus prompt.
When i wrote a proc program for it i am able to create records.
But when i fore the same query on sql prompt it stores reverse ????? ..some junk.
widechar columns are mapped with NVARCHAR datatype.... (0 Replies)
Discussion started by: suman_jakkula
0 Replies
2. HP-UX
Hi all,
We are facing the following problem in our HP-UX machine: software that manipulates utf-8 encoded strings (e.g. during string cut), fails to correctly manipulate strings (all containing Greek characters) that contain special characters like @, &, # etc. Actually, in different... (3 Replies)
Discussion started by: alina
3 Replies
3. Shell Programming and Scripting
Hi All,
I have a CSV file in which some fields contains special character for ex:-
my file is file 1
cat file1
abcd,bgfht,ngbht,abvc ****
hdlld,hsgdt,bhfy,knht ****
whenever i am trying to put a 4th feild in a variable its giving me list of all the files i have in current... (6 Replies)
Discussion started by: sam25
6 Replies
4. Shell Programming and Scripting
Hello,
if I try this (in bash):
#!/bin/bash
cat leercaracter.sh | while read linea
do
# read character by character
echo $linea | while read -n 1 caracter
do
echo $caracter
done
done
New lines, spaces, tabs aren't showed by echo.
How can I 'echo' those characters?... (7 Replies)
Discussion started by: albertogarcia
7 Replies
5. Shell Programming and Scripting
Hi all,
I'm learning sed (and regular expressions) - My first little program is to replace 3 numbers in a row with 'XXX'
This is what I am trying:
echo '511' | sed 's/{3}/XXX/'
Here is the output:
defunct-macbook-pro:~ defunct$ echo '511' | sed 's/{3}/XXX/'
511For some reason, it doesnt... (2 Replies)
Discussion started by: Defunct
2 Replies
6. Solaris
Hello,
I have large xml files with chinese characters on a windows box and they need to be FTP'd to UNIX box. When I ftp the file, the chinese text converts to junk characters.
I tried changing my setting on putty to UTF-8, but still cannot view the correct text. Is there something I need to... (4 Replies)
Discussion started by: tokool420
4 Replies
7. Shell Programming and Scripting
I'm trying to figure out a problem. I echo a colored block character with this code:
echo -e '\E
It works. But the challenge is echoing two different blocks with two different colors. I tried everything. Heres what i tried:
echo -e '\E
Doesn't work. It only echoes the first block.... (2 Replies)
Discussion started by: tinman47
2 Replies
8. Shell Programming and Scripting
Hi,
I am facing a below problem. Inorder to mak sure the below file is fixed width i am using the following command
awk '{printf("%-375s\n", $0) } so as to add trailing spaces at the end for records of length less than 375.
Input file > inp.txt
1©1234
1234
123©1
The output file is... (1 Reply)
Discussion started by: marcus_kosaman
1 Replies
9. Shell Programming and Scripting
grep -i "$line,$opline" COMBO_JUNK|awk -F, '
{
C4+=$4
}
{
}
END {
print C4
}
' OFS=,`
when i run this command in the script.... it o/p all the value as 0 if $line contains any special parameters.....
but the same script if i run in command prompt... it shows... (4 Replies)
Discussion started by: nikhil jain
4 Replies
10. Shell Programming and Scripting
I am using Korn shell on Linux 2.6x platform , and I am suing the following code to capture the lines which contain CONTROL CHARACTERS in my file :
awk '/]/ {print NR}' EROLLMENT_INPUT.txt
The problem is that this code shows the file has control characters when the file is in folder A ,... (2 Replies)
Discussion started by: kumarjt
2 Replies
LEARN ABOUT CENTOS
charmap
CHARMAP(5) Linux User Manual CHARMAP(5)
NAME
charmap - character symbols to define character encodings
DESCRIPTION
A character set description (charmap) defines a character set of available characters and their encodings. All supported character sets
should have the portable character set as a proper subset.
Syntax
The charmap file starts with a header, that may consist of the following keywords:
<codeset>
is followed by the name of the codeset.
<mb_cur_max>
is followed by the max number of bytes for a multibyte-character. Multibyte characters are currently not supported. The default
value is 1.
<mb_cur_min>
is followed by the min number of bytes for a character. This value must be less or equal than mb_cur_max. If not specified, it
defaults to mb_cur_max.
<escape_char>
is followed by a character that should be used as the escape-character for the rest of the file to mark characters that should be
interpreted in a special way. It defaults to the backslash ( ).
<comment_char>
is followed by a character that will be used as the comment-character for the rest of the file. It defaults to the number sign ( #
).
The charmap-definition itself starts with the keyword CHARMAP in column 1.
The following lines may have one of the two following forms to define the character-encodings:
<symbolic-name> <encoding> <comments>
This form defines exactly one character and its encoding.
<symbolic-name>...<symbolic-name> <encoding> <comments>
This form defines a couple of characters. This is useful only for multibyte-characters, which are currently not implemented.
The last line in a charmap-definition file must contain END CHARMAP.
Symbolic names
A symbolic name for a character contains only characters of the portable character set. The name itself is enclosed between angle brack-
ets. Characters following an <escape_char> are interpreted as itself; for example, the sequence <\>> represents the symbolic name >
enclosed in angle brackets.
Character encoding
The encoding may be in each of the following three forms:
<escape_char>d<number>
with a decimal number
<escape_char>x<number>
with a hexadecimal number
<escape_char><number>
with an octal number.
FILES
/usr/share/i18n/charmaps/*
CONFORMING TO
POSIX.2.
SEE ALSO
locale(1), localedef(1), localeconv(3), setlocale(3), locale(5)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
1994-11-28 CHARMAP(5)