03-16-2005
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need some help.. I would like to make a script that uses the tr utility to "encrypt" a selected file. I need to know how to set up the script so that if i type encrypt(script name) the letter that i want to start the encryption and then the file name, that it starts with the entered letter, and... (1 Reply)
Discussion started by: frankthetank115
1 Replies
2. Solaris
dear all
i have xml file on solaris contains password for the databse how can i encrypt the password but the apache can read the password after encrypt it
or if any one have any idea to make no one can read the password except apache (1 Reply)
Discussion started by: murad.jaber
1 Replies
3. Shell Programming and Scripting
Hai ,
is there any encrypt machanishm to protect my script or logic? (4 Replies)
Discussion started by: readycpbala
4 Replies
4. Shell Programming and Scripting
Hi,
i need to encrypt and decrypt of a string. pls provide me some syntax or any method available using shell script.
i know one method i.e.,
perl -e 'print pack "H*","message"'
so if perl command doesnt work then what is the other method to encrypt and decrypt.
Thanks in advance. (0 Replies)
Discussion started by: syamkp
0 Replies
5. Shell Programming and Scripting
Hello,
I have a paramter file, In which I store all the user-ids and passwords for the project. So if a user just invokes the paramter file he has access to all the variables, which i have exported in the parmatere file.
Now if a user echo's the variable which stores the databse password.... (1 Reply)
Discussion started by: DSDexter
1 Replies
6. Shell Programming and Scripting
Hi, I want to encrypt and decrypt a string(database password) which will be used in my scripts.
encrypt the string while storing in a file and while using it in other scripts
it should decrypt.
i tried below method. As it can decrypt easily, it is not recommended.
encrypt=`perl -e 'print unpack... (5 Replies)
Discussion started by: rohan10k
5 Replies
7. Shell Programming and Scripting
Hi I need to encrypt the below file using the translate command to shift each letter five characters to the end of the character set.
ALPHABETICAL FACTS.
THE FIRST THREE LETTERS ARE ABC.
THE MEDIAN LETTERS ARE MN.
THE LAST THREE LETTERS ARE XYZ.
THE FIRST WORD IN MY DISCTIONARY IS AAL.
THE... (1 Reply)
Discussion started by: drew211
1 Replies
8. Shell Programming and Scripting
I have script for all oracle prod db. I have hard coded the username / password. I need a mechanism to encode and decode the username / password in a shell script.
Another challenge is I use the username and password in a Select command for oracle DB. How can call the decrypted... (2 Replies)
Discussion started by: ilugopal
2 Replies
9. Shell Programming and Scripting
Hi,
I have a SQL which i want to run through a shell script.
query_result=`/home/oracle/product/11.2.0/bin/sqlplus -S uname/pwd@DBNAME <<!
set heading off feedback off trimspool on
set pagesize 0
set linesize 9999
spool $PARAM_PATH/param_name.txt;
Select sysdate from dual;
spool off;... (6 Replies)
Discussion started by: chetan.c
6 Replies
10. Shell Programming and Scripting
Hi,
I have to encrypt my ash scripts on a distribution of linux with Armv5tejl Buildroot , I tried a lot of solutions but none works .
Someone can help me?
Thanks,
Nicola (7 Replies)
Discussion started by: n.rito
7 Replies
ENCRYPT(3P) POSIX Programmer's Manual ENCRYPT(3P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
encrypt - encoding function (CRYPT)
SYNOPSIS
#include <unistd.h>
void encrypt(char block[64], int edflag);
DESCRIPTION
The encrypt() function shall provide access to an implementation-defined encoding algorithm. The key generated by setkey() is used to
encrypt the string block with encrypt().
The block argument to encrypt() shall be an array of length 64 bytes containing only the bytes with values of 0 and 1. The array is modi-
fied in place to a similar array using the key set by setkey(). If edflag is 0, the argument is encoded. If edflag is 1, the argument may
be decoded (see the APPLICATION USAGE section); if the argument is not decoded, errno shall be set to [ENOSYS].
The encrypt() function shall not change the setting of errno if successful. An application wishing to check for error situations should set
errno to 0 before calling encrypt(). If errno is non-zero on return, an error has occurred.
The encrypt() function need not be reentrant. A function that is not required to be reentrant is not required to be thread-safe.
RETURN VALUE
The encrypt() function shall not return a value.
ERRORS
The encrypt() function shall fail if:
ENOSYS The functionality is not supported on this implementation.
The following sections are informative.
EXAMPLES
None.
APPLICATION USAGE
Historical implementations of the encrypt() function used a rather primitive encoding algorithm.
In some environments, decoding might not be implemented. This is related to some Government restrictions on encryption and decryption rou-
tines. Historical practice has been to ship a different version of the encryption library without the decryption feature in the routines
supplied. Thus the exported version of encrypt() does encoding but not decoding.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
crypt(), setkey(), the Base Definitions volume of IEEE Std 1003.1-2001, <unistd.h>
COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol-
ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE
and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained
online at http://www.opengroup.org/unix/online.html .
IEEE
/The Open Group 2003 ENCRYPT(3P)