UPD: updated to use more links to openssl and ant, openssl_, ant_

This commit is contained in:
JohnE 2016-01-26 15:10:53 -08:00
parent 2705c3c445
commit 598ef02229
4 changed files with 24 additions and 9 deletions

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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