From 598ef022297e0d59f97f4eacbe2707a3ca07a514 Mon Sep 17 00:00:00 2001 From: JohnE Date: Tue, 26 Jan 2016 15:10:53 -0800 Subject: [PATCH] UPD: updated to use more links to openssl and ant, openssl_, ant_ --- .bash_android | 2 +- .bash_crypto | 18 ++++++++++++++++-- .bash_dev | 10 +++++++--- .bash_profile | 3 --- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.bash_android b/.bash_android index db06b66..56d1a67 100644 --- a/.bash_android +++ b/.bash_android @@ -4,7 +4,7 @@ ANDROID_SDK_HOME='/Applications/android-dev/android-sdk' ANDROID_NDK='/Applications/android-dev/android-ndk' -ANT_HOME=' /usr/local/Cellar/ant/1.9.4' +ANT_HOME=' /usr/local/Cellar/ant_' # ln -s /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home /usr/local/bin/javahome JAVA_HOME='/usr/local/bin/javahome' diff --git a/.bash_crypto b/.bash_crypto index a9fe4be..c54941e 100644 --- a/.bash_crypto +++ b/.bash_crypto @@ -1,8 +1,9 @@ # brew openssl -alias ossl='/usr/local/Cellar/openssl/1.0.2/bin/openssl' -export OSSL=/usr/local/Cellar/openssl/1.0.2/bin/openssl +# openssl_ -> /usr/local/Cellar/openssl/1.0.2e_1/bin/openssl +export OSSL=/usr/local/Cellar/openssl_ #openssl +alias ossl=$OSSL alias sha="$OSSL sha1" alias sha256="$OSSL dgst -sha256" alias sha512="$OSSL dgst -sha512" @@ -15,6 +16,7 @@ alias ciphers="$OSSL list-cipher-commands" ### AES Encrypt/Decrypt # alias aes="$OSSL enc -aes-256-cbc" + # encrypt file.txt to file.enc using 256-bit AES in CBC mode #openssl enc -aes-256-cbc -salt -in file.txt -out file.enc # the same, only the output is base64 encoded for, e.g., e-mail @@ -27,3 +29,15 @@ alias aes="$OSSL enc -aes-256-cbc" #openssl enc -aes-256-cbc -salt -in file.txt -out file.enc -pass pass:mySillyPassword # provide password in a file #openssl enc -aes-256-cbc -salt -in file.txt -out file.enc -pass file:/path/to/secret/password.txt + + + +### ### ### ### ### +### Brew OpenSSL # + +# A CA file has been bootstrapped using certificates from the system +# keychain. To add additional certificates, place .pem files in +# /usr/local/etc/openssl/certs + +# and run +# /usr/local/opt/openssl/bin/c_rehash diff --git a/.bash_dev b/.bash_dev index b43ad37..e2e682f 100644 --- a/.bash_dev +++ b/.bash_dev @@ -1,4 +1,8 @@ -# fix an error is Mavericks that is fixed with an update later (running old version) +# fix an error in Mavericks that is fixed with an update later (running old version) # clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future] -export CFLAGS=-Qunused-arguments -export CPPFLAGS=-Qunused-arguments +# export CFLAGS=-Qunused-arguments +# export CPPFLAGS=-Qunused-arguments + +# openssl building of software +# LDFLAGS: -L/usr/local/opt/openssl/lib +# CPPFLAGS: -I/usr/local/opt/openssl/include diff --git a/.bash_profile b/.bash_profile index b204afb..e5f946b 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,9 +1,6 @@ # user-installed binaries exec (homebrew binaries) export PATH=/usr/local/bin:$PATH -# openssl env variable -export OSSL=openssl - # aliases source ~/.bash_aliases source ~/.bash_mac