Sponsored Content
Full Discussion: Encrypt a hardcoded passwd
Operating Systems Solaris Encrypt a hardcoded passwd Post 302778229 by q8devilish on Sunday 10th of March 2013 06:48:45 AM
Old 03-10-2013
Encrypt a hardcoded passwd

hey guys,
is there a way to encrypt a hard coded passwd inside a shell script basically this is my script and i was to encrypt or hide the ftp password.
Code:
#!/bin/sh
HOST='XXXXXXXXX'
USER='XXXXXXXXXX'
PASSWD='XXXXXXXXXXX'


cd /tmp/ftptest
grep -c "{0000000#END#\>" * > NO_OF_CARDS
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
prompt off
ascii
cd /tmp/ftptest
mput *
quit
END_SCRIPT
exit 0

And i can't let the password popup as this script was intended to be automation for a file transfer.
 

10 More Discussions You Might Find Interesting

1. Programming

Help with encrypt function

Hi there, I need to include a simple encryption function in a C program and I came across this function void encrypt(char block, int edflag) whic is defined in #include des_crypt.h. According the man "the block argument to encrypt() is a character array of length 64 containing only the... (1 Reply)
Discussion started by: giggi
1 Replies

2. Shell Programming and Scripting

Tr utility to Encrypt

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

3. Shell Programming and Scripting

encrypt my sctipt

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

connection string is hardcoded

Hi, I have many perl scripts in single server, i am new to perl, suggestions are appreciated. connection string is hardcoded in all perl scripts i need to make change the all perl scripts and there should be only one config file available in that server. destination database is mysql... (3 Replies)
Discussion started by: prakash.gr
3 Replies

5. Shell Programming and Scripting

How to Encrypt password

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. UNIX for Dummies Questions & Answers

how to enter hardcoded password automatically

In the script i am passing a command from script which is called from cron. When this command is called from cron the unix prompt asks for password. Can we automatically enter the password when promted(if the password is hardcoded in script)?? Please let me know how to enter the password... (4 Replies)
Discussion started by: abhi_n123
4 Replies

7. Solaris

passwd cmd reenables passwd aging in shadow entry

Hi Folks, I have Solaris 10, latest release. We have passwd aging set in /etc/defalut/passwd. I have an account that passwd should never expire. Acheived by emptying associated users shadow file entries for passwd aging. When I reset the users passwd using passwd command, it re enables... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

8. UNIX for Dummies Questions & Answers

Issue with use of Configuration file instead of hardcoded values inside the script

Hi, My code works perfectly fine. But, $my $min_to_add = 1 * 1 * 60; and my $hr_to_sub = 1 * 1 * 86400; i may need to change the values in future. so am keeping them in a separate configuration file like MIN = 1 * 1 * 60 HR = 24 * 60 * 60 in the script, i use a package use et_config... (3 Replies)
Discussion started by: irudayaraj
3 Replies

9. Shell Programming and Scripting

Need help with file encrypt

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

10. AIX

When did AIX start using /etc/security/passwd instead of /etc/passwd to store encrypted passwords?

Does anyone know when AIX started using /etc/security/passwd instead of /etc/passwd to store encrypted passwords? (1 Reply)
Discussion started by: Anne Neville
1 Replies
DateTime::Locale::bn(3) 				User Contributed Perl Documentation				   DateTime::Locale::bn(3)

NAME
DateTime::Locale::bn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'bn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Bengali. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXXX XXXXXX XXXXXXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (format) XXX XXXXX XXX XXXXXXXX XXXXX XXX XXX Narrow (format) XX X XX XX XX X X Wide (stand-alone) XXXXXX XXXXXXXX XXXXXX XXXXXXXXXXX XXXXXXXX XXXXXX XXXXXX Abbreviated (stand-alone) XXX XXXXX XXX XXXXXXXX XXXXX XXX XXX Narrow (stand-alone) XX X XX XX XX X X Months Wide (format) XXXXXXXXX XXXXXXXXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXXXXX XXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XXXXXXXXX XXXXXXXXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXXXXX XXXXXXX XXXXXXX XXXXXXXX Narrow (format) XX XX XX X XX XXX XX X XX X X XX Wide (stand-alone) XXXXXXXXX XXXXXXXXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXXXXX XXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XXXXXXXXX XXXXXXXXXXX XXXXX XXXXXX XX XXX XXXXX XXXXX XXXXXXXXXX XXXXXXX XXXXXXX XXXXXXXX Narrow (stand-alone) XX XX XX X XX XXX XX X XX X X XX Quarters Wide (format) XXXXX XXXXXXXXX XXXXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXXXXX XXXXXXXXX Abbreviated (format) XXXXXXXXX X XXXXXXXXX X XXXXXXXXX X XXXXXXXXX X Narrow (format) X X X X Wide (stand-alone) XXXXX XXXXXXXXX XXXXXXXX XXXXXXXXX XXXXXX XXXXXXXXX XXXXXX XXXXXXXXX Abbreviated (stand-alone) XXXXXXXXX X XXXXXXXXX X XXXXXXXXX X XXXXXXXXX X Narrow (stand-alone) X X X X Eras Wide BCE CE Abbreviated XXXXXXXXXX XXXXXXXXX Narrow XXXXXXXXXX XXXXXXXXX Date Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXXXXX, 2008 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXXXXX, -10 Long 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 Medium 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 Short 2008-02-05T18:30:30 = 5/2/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/9/-10 Default 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 XXXXXXX UTC 1995-12-22T09:05:02 = 9:05:02 XXXXXXXXX UTC -0010-09-15T04:44:23 = 4:44:23 XXXXXXXXX UTC Long 2008-02-05T18:30:30 = 6:30:30 XXXXXXX UTC 1995-12-22T09:05:02 = 9:05:02 XXXXXXXXX UTC -0010-09-15T04:44:23 = 4:44:23 XXXXXXXXX UTC Medium 2008-02-05T18:30:30 = 6:30:30 XXXXXXX 1995-12-22T09:05:02 = 9:05:02 XXXXXXXXX -0010-09-15T04:44:23 = 4:44:23 XXXXXXXXX Short 2008-02-05T18:30:30 = 6:30 XXXXXXX 1995-12-22T09:05:02 = 9:05 XXXXXXXXX -0010-09-15T04:44:23 = 4:44 XXXXXXXXX Default 2008-02-05T18:30:30 = 6:30:30 XXXXXXX 1995-12-22T09:05:02 = 9:05:02 XXXXXXXXX -0010-09-15T04:44:23 = 4:44:23 XXXXXXXXX Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXXXXX, 2008 6:30:30 XXXXXXX UTC 1995-12-22T09:05:02 = XXXXXXXX, 22 XXXXXXXX, 1995 9:05:02 XXXXXXXXX UTC -0010-09-15T04:44:23 = XXXXXX, 15 XXXXXXXXXX, -10 4:44:23 XXXXXXXXX UTC Long 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 6:30:30 XXXXXXX UTC 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 9:05:02 XXXXXXXXX UTC -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 4:44:23 XXXXXXXXX UTC Medium 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 6:30:30 XXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 9:05:02 XXXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 4:44:23 XXXXXXXXX Short 2008-02-05T18:30:30 = 5/2/08 6:30 XXXXXXX 1995-12-22T09:05:02 = 22/12/95 9:05 XXXXXXXXX -0010-09-15T04:44:23 = 15/9/-10 4:44 XXXXXXXXX Default 2008-02-05T18:30:30 = 5 XXXXXXXXXXX, 2008 6:30:30 XXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 9:05:02 XXXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 4:44:23 XXXXXXXXX Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXX -0010-09-15T04:44:23 = 15 XXX Hm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 XXXXXXX 1995-12-22T09:05:02 = 9:05 XXXXXXXXX -0010-09-15T04:44:23 = 4:44 XXXXXXXXX Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 XXXXXXX 1995-12-22T09:05:02 = 9:05:02 XXXXXXXXX -0010-09-15T04:44:23 = 4:44:23 XXXXXXXXX M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, d-M) 2008-02-05T18:30:30 = XXXXX, 5-2 1995-12-22T09:05:02 = XXXXX, 22-12 -0010-09-15T04:44:23 = XXX, 15-9 MMdd (dd-MM) 2008-02-05T18:30:30 = 05-02 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-09 MMM (LLL) 2008-02-05T18:30:30 = XXXXXXXXXXX 1995-12-22T09:05:02 = XXXXXXXX -0010-09-15T04:44:23 = XXXXXXXXXX MMMd (d MMM) 2008-02-05T18:30:30 = 5 XXXXXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX MMMEd (E d MMM) 2008-02-05T18:30:30 = XXXXX 5 XXXXXXXXXXX 1995-12-22T09:05:02 = XXXXX 22 XXXXXXXX -0010-09-15T04:44:23 = XXX 15 XXXXXXXXXX MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX MMMMEd (E d MMMM) 2008-02-05T18:30:30 = XXXXX 5 XXXXXXXXXXX 1995-12-22T09:05:02 = XXXXX 22 XXXXXXXX -0010-09-15T04:44:23 = XXX 15 XXXXXXXXXX ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M/yyyy) 2008-02-05T18:30:30 = 2/2008 1995-12-22T09:05:02 = 12/1995 -0010-09-15T04:44:23 = 9/-010 yMEd (EEE, d/M/yyy) 2008-02-05T18:30:30 = XXXXX, 5/2/2008 1995-12-22T09:05:02 = XXXXX, 22/12/1995 -0010-09-15T04:44:23 = XXX, 15/9/-10 yMMM (MMM y) 2008-02-05T18:30:30 = XXXXXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXXX -10 yMMMEd (EEE, d MMM, y) 2008-02-05T18:30:30 = XXXXX, 5 XXXXXXXXXXX, 2008 1995-12-22T09:05:02 = XXXXX, 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = XXX, 15 XXXXXXXXXX, -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXXX -10 yQ (Q y) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -10 yQQQ (QQQ y) 2008-02-05T18:30:30 = XXXXXXXXX X 2008 1995-12-22T09:05:02 = XXXXXXXXX X 1995 -0010-09-15T04:44:23 = XXXXXXXXX X -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.2 2013-08-25 DateTime::Locale::bn(3)
All times are GMT -4. The time now is 04:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy