sencrypt and sdecrypt are utilities for encrypting and decrypting data with the AES, DES, 3DES, and RC4 algorithms. It can read keys from files or ask for a passphrase and use that together with a salt to derive a key using the PBKDF2 key derivation function.
sencrypt and sdecrypt are portable and compatible reimplementations of the encrypt and decrypt utilities in Solaris/Illumos-based operating systems.
Downloads
Source Code Repository
The current development version is available from the source code repository.
News
2019-08-19: sencrypt 4
- Fix typo in Makefile preventing installation
2019-08-05: sencrypt 3
- Simplify key file reading
- Allow local makefile overrides in local.mk
- Mark fallthrough case
- Port to AIX
- Add support for OpenSSL 1.1
- Perform 500000 iterations with the PBKDF2 hash function when creating new files
- Use correct headers and libraries under Solaris/Illumos
- Use a symlink for the manpage alias instead of a soelim stub
- Detect the OS and configure build flags and libraries automatically
- Exclude "." from tarballs
- Print a warning message when using an insecure algorithm
- Perform 50000 iterations with the PBKDF2 hash function when creating new files
2015-03-17: sencrypt 2
- Improve README file
- Add NEWS file
- Use C99-compatible version of snprintf on UnixWare 7
- Correct check for errors from RAND_bytes()
2014-01-30: sencrypt 1
- Add manpage
- Initial revision
Documentation
Manual Pages
Build Instructions
sencrypt requires a POSIX:2004 compatible operating system, it has been tested to work on Linux distributions, FreeBSD, Solaris and Illumos-derived distributions, UnixWare, OpenServer, and AIX. The following tools and shared libraries are required to build sencrypt:
- GNU make >= 3.81
- GNU or BSD install
- OpenSSL
Rebuilding the man pages additionally requires the xsltproc tool from libxml2.
Before building sencrypt check the commented macros in the Makefile for any macros you may need to override depending on the used toolchain and operating system.
By default, all files will be installed under the "/usr/local" directory, a
different installation path prefix can be set via the prefix
macro. In
addition, a second path prefix can be specified via the DESTDIR
macro which
will be prepended to any path, incuding the prefix
macro path prefix. In
contrast to prefix
, the path specified via the DESTDIR
macro will only be
prepended to paths during installation and not be used for constructing
internal paths.
The following instructions assume that make
is GNU make, on some platforms
it may be installed under a different name or a non-default path. In order to
start the build process run make all
. After a successful build, run make
install
to install the program, any associated data files and the
documentation.
Previously built binaries, object files, generated data files and
documentation can be removed by running make clean
, any additional,
generated files which are not removed by the clean
target can be removed by
running make clobber
.
Contact
Please send any feedback, translations or bug reports via email to guido+sencrypt@berhoerster.name.
Bug Reports
When sending bug reports, please always mention the exact version of sencrypt with which the issue occurs as well as the version of the operating system you are using and make sure that you provide sufficient information to reproduce the issue and include any input, output, any error messages.
In case of build issues, please also specify the implementations and versions of the tools and shared libraries used to build the program, in particular the compiler.
In case of crashes, please generate a stack trace with a suitable debugger such as gdb, lldb, dbx, or debug after a crash has occurred either by examining the resulting core file or by running the program from the debugger and attach it to the bug report. In order to generate a meaningful stack trace the program as well as any dynamically linked libraries need to be built with debugging information, see the documentation of the used compiler for the required compiler flags. If any of the dynamically linked shared libraries do not contain debugging information, please either install debugging information for these libraries using mechanisms provided by your operating system or rebuild the libraries accordingly. Please refer to the documentation of the debugger for detailed instructions on generating backtraces.
License
Except otherwise noted, all files are Copyright (C) 2014 Guido Berhoerster and distributed under the following license terms:
Copyright (C) 2014 Guido Berhoerster guido+sencrypt@berhoerster.name
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.