Has anyone ever gotten shc compiler program to work. I am trying to encrypt
a bash script on centos. When I run the command "shc -f test.sh", the binary actually gets created; however, when I try to run the binary I get the following the error:
# ./test.sh.x
./test.sh.x: No such file or... (1 Reply)
I have written a shell script called square, which prints the square of the input number, eg.
> square 4
16
There is a program called shc which compiles the shell scirpt and create a executable file and a c library file, namely square.x and square.x.c repectively.
If I would like to... (0 Replies)
I have written a shell script called square, which prints the square of the input number, eg.
> square 4
16
There is a program called shc which compiles the shell scirpt and create a executable file and a c library file, namely square.x and square.x.c repectively.
If I would like to... (1 Reply)
Hello there,
I’m compiling a shell script under UNIX AIX 5.3 operating system.
I’m facing a “glitch” when I tried to run the .x file AIX sent the error message “Killed”.
# rpm -qa
libgcc-4.2.0-3
libstdc++-4.2.0-3
gcc-4.2.0-3
libstdc++-devel-4.2.0-3
gcc-c++-4.2.0-3
# make
*** ... (2 Replies)
Hi all,
I'm trying to install shc on my clean solaris 10 so that I could do some encrypting on my shell scripts.
I've tried several ways but it gave me these error messages
# make
cc -Wall -O6 shc.c -o shc
cc: illegal option -Wall
*** Error code 1
make: Fatal error: Command failed... (6 Replies)
I have two scripts test1.sh and test2.sh. test1.sh is calling test2.sh.
test2.sh is having some functions and password which we are using in test1.sh
test1.sh
#!/bin/sh
. test2.sh
echo "$test"test2.sh
#!/bin/sh
test=pravinO/P
pravin
Now use shc to protect my test2.sh and i modified... (5 Replies)
I am using the shc shell compiler, it works fine, just that when i execute it, it displays the code at the terminal. Is there any way to hide this as well? otherwise it beats the purpose of hiding the code.
Thanks ! (7 Replies)
Hello, I have some shellscripts internal company more by the need to conceal the code to protect passwords and others, we are using the SHC.
the shellscripts always worked without error, including cron.
after the SHC, if I run manually (. / shellscript) it works
if I put the same command... (3 Replies)
Hello,
I would like to use shc on SUN 5.10 SPARC and HP UX Itanium 11.31 so that I could do some encrypting on my shell scripts.
But on these machines I don"t have cc or gcc.
I find a man who can download shc.c and send me the binary files.
You can download it here :
www datsi fi upm es... (3 Replies)
I have used shc utillity to convert a shell script to it's compiled version.Inside this script i have called another shell script which is also in compled version.
Example:-
Main script:- main.sh.x
child script:- child.sh.x (this is called inside main.sh.x)
This child script will run in... (2 Replies)
Discussion started by: millan
2 Replies
LEARN ABOUT DEBIAN
crypt::des_ede3
Crypt::DES_EDE3(3pm) User Contributed Perl Documentation Crypt::DES_EDE3(3pm)NAME
Crypt::DES_EDE3 - Triple-DES EDE encryption/decryption
SYNOPSIS
use Crypt::DES_EDE3;
my $ede3 = Crypt::DES_EDE3->new($key);
$ede3->encrypt($block);
DESCRIPTION
Crypt::DES_EDE3 implements DES-EDE3 encryption. This is triple-DES encryption where an encrypt operation is encrypt-decrypt-encrypt, and
decrypt is decrypt-encrypt-decrypt. This implementation uses Crypt::DES to do its dirty DES work, and simply provides a wrapper around that
module: setting up the individual DES ciphers, initializing the keys, and performing the encryption/decryption steps.
DES-EDE3 encryption requires a key size of 24 bytes.
You're probably best off not using this module directly, as the encrypt and decrypt methods expect 8-octet blocks. You might want to use
the module in conjunction with Crypt::CBC, for example. This would be DES-EDE3-CBC, or triple-DES in outer CBC mode.
USAGE
$ede3 = Crypt::DES_EDE3->new($key)
Creates a new Crypt::DES_EDE3 object (really, a collection of three DES ciphers), and initializes each cipher with part of $key, which
should be at least 24 bytes. If it's longer than 24 bytes, the extra bytes will be ignored.
Returns the new object.
$ede3->encrypt($block)
Encrypts an 8-byte block of data $block using the three DES ciphers in an encrypt-decrypt-encrypt operation.
Returns the encrypted block.
$ede3->decrypt($block)
Decrypts an 8-byte block of data $block using the three DES ciphers in a decrypt-encrypt-decrypt operation.
Returns the decrypted block.
$ede3->blocksize
Returns the block size(8).
$ede3->keysize
Returns the key size(24).
LICENSE
Crypt::DES_EDE3 is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR & COPYRIGHTS
Crypt::DES_EDE3 is Copyright 2001 Benjamin Trott, ben@rhumba.pair.com. All rights reserved.
perl v5.8.8 2001-09-15 Crypt::DES_EDE3(3pm)