06-13-2005
I hope encrypt function is available in unix but not the decryption. You can try your own script to generate passwd from some other string.
hth.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi trying to ftp a printer to collect info but the ftp file shows that when it gets to password the mode is incorrect
both the login and the password are not compulsory (e.g. if the user hits the enter button twice the ftp session is initiated)
any ideas :confused: (6 Replies)
Discussion started by: w33man
6 Replies
2. UNIX for Advanced & Expert Users
Hi,
I do not want the plaintext password to appear in the netrc file. So I want to encrypt the password. Is there a way to encrypt the password and still make ftp to use the netrc ?
Thanks in advance.
-Gow:confused: (2 Replies)
Discussion started by: ggowrish
2 Replies
3. Shell Programming and Scripting
Hi all,
Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code
ex: ftp -i <remote system name>
from now i should NOT use .netrc file
how can i login automativally with out asking userid and pqssword.
note: i am working on... (1 Reply)
Discussion started by: getgopu25
1 Replies
4. Shell Programming and Scripting
I have a unix shell, there is a way to encript the whole shell, and be able to run the encripted shell, so I can give my client the encripted shell, and he can't see the code I wrote? (6 Replies)
Discussion started by: pedro_lezaeta
6 Replies
5. UNIX for Dummies Questions & Answers
hello,
I am trying to write an automated script to transfer multiple files to another solaris 5.8 box. I am using the #! /bin/bash prompt and I am having trouble finding/creating the .netrc login file. I googled and the only info I got was that I should create/find it in my home directory. I went... (2 Replies)
Discussion started by: grandtheftander
2 Replies
6. UNIX for Dummies Questions & Answers
I had configured the .netrc file for automatic login to ftp
however i am not clear how to give the port no after the "machine" token:
as in, when i give
machine xyz.com 2121
login <usid>
password <pass>
i am getting the error Unknown .netrc keyword 2121 while giving the command ftp xyz.com... (1 Reply)
Discussion started by: jithinravi
1 Replies
7. Shell Programming and Scripting
Good afternoon to you all
I need help
I need a script that will allow to encrypt the system´s timestamp;
I have to use a pre-shared key to cipher the timestamp, so basically I need:
1st) cipher with a pre-shared key
2nd) encrypt the timestamp
3rd) encode on a base64
the output... (1 Reply)
Discussion started by: zarahel
1 Replies
8. UNIX for Dummies Questions & Answers
Hi
We send *.csv with sensitive data to our customers. Our customers open those files with Excel.
A new requirement is that we password protect those CSV files.
I thought to pack them with ZIP and assign a password to the archive.
But Solaris 10 can't encrypt ZIP files.
$ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies
9. Shell Programming and Scripting
How to use .netrc file and how to create and how can I use it with my script where I need to upload the file to ftp server.I can do it ftp script but my requirement is to us only .netrc file.
I tried this way
machine 172.00.xx.49
login svxxxx
password paxxxx
macdef init
... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies
10. Shell Programming and Scripting
Hi,
i have a doubt. i am using .netrc file for login to a ftp server.
ftp abc.ftp.com
suppose i have 2 userid and password for the same server as shown below. which one is it going to read from the .netrc file?
cat .netrc
machine abc.ftp.com login admin1 password pass1
machine... (13 Replies)
Discussion started by: Little
13 Replies
setkey(3C) Standard C Library Functions setkey(3C)
NAME
setkey - set encoding key
SYNOPSIS
#include <stdlib.h>
void setkey(const char *key);
DESCRIPTION
The setkey() function provides (rather primitive) access to the hashing algorithm employed by the crypt(3C) function. The argument of
setkey() is an array of length 64 bytes containing only the bytes with numerical value of 0 and 1. If this string is divided into groups of
8, the low-order bit in each group is ignored; this gives a 56-bit key which is used by the algorithm. This is the key that will be used
with the algorithm to encode a string block passed to encrypt(3C).
RETURN VALUES
No values are returned.
ERRORS
The setkey() function will fail if:
ENOSYS The functionality is not supported on this implementation.
USAGE
In some environments, decoding may not be implemented. This is related to U.S. Government restrictions on encryption and decryption rou-
tines: the DES decryption algorithm cannot be exported outside the U.S.A. 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.
Because setkey() does not return a value, applications wishing to check for errors should set errno to 0, call setkey(), then test errno
and, if it is non-zero, assume an error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
crypt(3C), encrypt(3C), attributes(5), standards(5)
SunOS 5.10 14 Aug 2002 setkey(3C)