Comments (5)
This problem is only present in the later OpenSSL versions, mine is
OpenSSL 1.1.0e 16 Feb 2017
from transcrypt.
Specifically, here is the update that needs to be made:
validate_cipher() {
local supported=$(openssl list -cipher-commands | tr -s ' ' '\n' | grep --line-regexp "$cipher")
if [[ ! $supported ]]; then
if [[ $interactive ]]; then
printf '"%s" is not a valid cipher; choose one of the following:\n\n' "$cipher"
openssl list -cipher-commands | column -c 80
printf '\n'
unset cipher
else
die 1 '"%s" is not a valid cipher; see `openssl list -cipher-commands`' "$cipher"
fi
fi
}
There are two changes:
openssl list -cipher-commands
as mentioned aboveopenssl list -cipher-commands | tr -s ' ' '\n' | grep --line-regexp "$cipher"
note thetr -s
to turn the tabular data into a single column list.
If my bash-fu were better, I'd issue a PR, but I can't quite figure out how to do a conditional on the semver of openssl. i.e. openssl version | awk '{print $2}'
returns the version... and we know that 1.1 is where the change broke, but I'm not quite there in bash land for parsing major / minor / patch and doing the comparison. Hopefully this is a good starting point for the author.
For now, I'm just adding it to my repo's /scripts dir.
from transcrypt.
This issue popped up for me when I tried to decrypt a new cloned repository using the provided transcrypt command from the original repo. Applying dfee's validate_cipher update fixed it for me. Using openssl 1.1.0f
from transcrypt.
I have made a PR from @thomas-hilaire's fork which has the fix for this - not sure why he didn't make it himself.
from transcrypt.
This has been resolved by #48 and a7e8aef. I'll be cutting a new release shortly, but feel free to try out the code in the master branch.
from transcrypt.
Related Issues (20)
- is it possible to use a password to allow only committer who known it to decipher files HOT 2
- feat: Transparent file name encryption
- Transcrypt can fail to run in Jenkins when Git hooks are disabled: `mkdir: can't create directory '/dev/null': File exists` HOT 8
- Error `transcrypt smudge context=default' failed 1` since version 2.2.1 HOT 13
- rekeying broken in 2.3.0-pre HOT 4
- decryption not happening on OS in FIPS compliant mode HOT 7
- File name encryption HOT 1
- Is there any way to have diff's work inside git clients, such as Sublime Merge? HOT 3
- encryption changed, but no change! HOT 5
- Creating a second context on pre-release branch creates duplicate pre-commit file HOT 2
- Cannot detect transcrypt repo HOT 4
- openssl: WARNING : deprecated key derivation used. Using -iter or -pbkdf2 would be better. HOT 2
- transcrypt: unknown option -- context HOT 2
- mkdir: /dev/null: File exists HOT 2
- Feature Request: encrypt a file partially only HOT 2
- Handle quotes and colon in filenames HOT 3
- context cannot be flushed and reencrypted anymore HOT 4
- Completion in zsh doesn't work
- Password echoing to terminal? How can I set password securely? HOT 2
- Unexpected commit with git log --all
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transcrypt.