03-22-2017
As I posted last week:
Quote:
This extremely common question always has the same inescapable conclusion.
Moderator's Comments:
|
|
If your database/machine/client can decrypt it at will without secrets -- so can anyone else.
|
|
Even if you shc it that doesn't prevent people from, say, copying it to a different machine without your permission, somewhere they can control what shell is used, so as to extract the contents.
Yes, but --
Encryption does not work that way.
But what if --
Encryption does not work that way.
Maybe if it --
Encryption does not work that way.
To prevent people from reading your scripts/passwords, chmod.
To prevent people getting access to something which reads the scripts/passwords, sudo.
To prevent root from getting at it... You're out of luck.
Encryption really, really, really doesn't work that way, no matter how far down the rabbit hole you go.
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. OS X (Apple)
I'm on OSX 10.4. I was wondering if you can use UNIX terminal to track what web sites have been viewed on this Mac...
Thank you! (1 Reply)
Discussion started by: tracymanusa
1 Replies
2. Shell Programming and Scripting
Hi everyone,
I am in the process of trying to decide the correct way to solve a particular scripting/email issue I have and would appreciate any advice.
We have a cronjob running every 10 mins to check disk size on the server and if this exceeds a certain percentage then it will email a... (2 Replies)
Discussion started by: si_linux
2 Replies
3. Shell Programming and Scripting
I have one shell script which is being accessed by many jobs at same time.
I want to make the script such that , other job should wait for the script if script is being used by some other job. Is there any way to implement it in script level ?
Gops (1 Reply)
Discussion started by: Gopal_Engg
1 Replies
4. Shell Programming and Scripting
I'm using a shared server on Hostgator (Linux CentOS). I'm trying to set a cron job using the Control Panel that will check if its already running before starting a new one.
I've tried the following...
* * * * * &&
but I get this error emailed to me...
/bin/sh: line 0:
Any... (5 Replies)
Discussion started by: tech9821
5 Replies
5. Shell Programming and Scripting
Hi,
I am running a shell script from a central server to multiple remote servers using the following code:
application_check()
{
# Linux/UNIX box with ssh key based login
SERVERS=`cat /tmp/server-details`
# SSH User name
USR="user"
# create new file
> /tmp/abc.log
# connect... (2 Replies)
Discussion started by: mystition
2 Replies
6. Shell Programming and Scripting
Hey guys,
I want to paste a code in a .php file via a bash script. I am on ubuntu 10.04.
The problem is if the values for $ aren't present, then all of them would be removed by the script.
An example of my script (I modified it for this thread to prevent it from being overly complicated)
... (2 Replies)
Discussion started by: xxxx
2 Replies
7. UNIX for Dummies Questions & Answers
Sorry if this has been answered. I did search both Google and this site and did find this post: unix.com/unix-dummies-questions-answers/152992-how-ignore-errors-script.html
However, it wasn't answered.
I have the same question - how do you prevent a tcsh script from terminating when the... (4 Replies)
Discussion started by: deepstructure
4 Replies
8. Shell Programming and Scripting
I have a script which do validation check and perform code migration from one env. to another, this is built for users/developers.
How can I prevent this shell script from copy or read from users, as they can modify it and run it as per their requirement where as this has to be standard script and... (1 Reply)
Discussion started by: pramendra
1 Replies
9. Red Hat
Hello
i have server cpanel on centos 6
an there is a client used script to hack other accounts
the script is like this
_____
__________
<?php
$auth_pass = "7815696ecbf1c96e6894b779456d330e";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;... (1 Reply)
Discussion started by: jackmio
1 Replies
10. Shell Programming and Scripting
Greetings Experts,
I am on AIX using ksh; I am processing the input files and generating a awk_output.txt file using AWK. By reading that awk_output.txt file, I am building a output.html file which is cat and then fed to /usr/sbin/sendmail .When the shell script is triggered through command... (2 Replies)
Discussion started by: chill3chee
2 Replies
LEARN ABOUT DEBIAN
crypt::rijndael
Rijndael(3pm) User Contributed Perl Documentation Rijndael(3pm)
NAME
Crypt::Rijndael - Crypt::CBC compliant Rijndael encryption module
SYNOPSIS
use Crypt::Rijndael;
# keysize() is 32, but 24 and 16 are also possible
# blocksize() is 16
$cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC() );
$cipher->set_iv($iv);
$crypted = $cipher->encrypt($plaintext);
# - OR -
$plaintext = $cipher->decrypt($crypted);
DESCRIPTION
This module implements the Rijndael cipher, which has just been selected as the Advanced Encryption Standard.
keysize
Returns the keysize, which is 32 (bytes). The Rijndael cipher actually supports keylengths of 16, 24 or 32 bytes, but there is no way
to communicate this to "Crypt::CBC".
blocksize
The blocksize for Rijndael is 16 bytes (128 bits), although the algorithm actually supports any blocksize that is any multiple of our
bytes. 128 bits, is however, the AES-specified block size, so this is all we support.
$cipher = Crypt::Rijndael->new( $key [, $mode] )
Create a new "Crypt::Rijndael" cipher object with the given key (which must be 128, 192 or 256 bits long). The additional $mode
argument is the encryption mode, either "MODE_ECB" (electronic codebook mode, the default), "MODE_CBC" (cipher block chaining, the same
that "Crypt::CBC" does), "MODE_CFB" (128-bit cipher feedback), "MODE_OFB" (128-bit output feedback), or "MODE_CTR" (counter mode).
ECB mode is very insecure (read a book on cryptography if you dont know why!), so you should probably use CBC mode.
$cipher->set_iv($iv)
This allows you to change the initial value vector used by the chaining modes. It is not relevant for ECB mode.
$cipher->encrypt($data)
Encrypt data. The size of $data must be a multiple of "blocksize" (16 bytes), otherwise this function will croak. Apart from that, it
can be of (almost) any length.
$cipher->decrypt($data)
Decrypts $data.
Encryption modes
Use these constants to select the cipher type:
MODE_CBC - Cipher Block Chaining
MODE_CFB - Cipher feedback
MODE_CTR - Counter mode
MODE_ECB - Electronic cookbook mode
MODE_OFB - Output feedback
MODE_PCBC - ignore this one for now :)
SEE ALSO
Crypt::CBC, http://www.csrc.nist.gov/encryption/aes/
BUGS
Should EXPORT or EXPORT_OK the MODE constants.
AUTHOR
Currently maintained by brian d foy, "<bdfoy@cpan.org>".
Original code by Rafael R. Sevilla.
The Rijndael Algorithm was developed by Vincent Rijmen and Joan Daemen, and has been selected as the US Government's Advanced Encryption
Standard.
SOURCE
This code is in Github:
git://github.com/briandfoy/crypt-rijndael.git
LICENSE
This software is licensed under the Lesser GNU Public License. See the included COPYING file for details.
perl v5.14.2 2009-12-10 Rijndael(3pm)