Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amber-CLI no longer encrypts with New Line character #650

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Amber-CLI no longer encrypts with New Line character #650

merged 1 commit into from
Feb 19, 2018

Conversation

jhonnold
Copy link
Contributor

Description of the Change

Use read_line on File.open in order to make sure that there is no \n at the end of the encryption key when reading from file.

Alternate Designs

Looked at the possibility of strip on the original code. Didn't take this route as it would require reading the whole file, thus likely slower.

Benefits

Reading encryption key from file and from ENV will now be the same.

Possible Drawbacks

Multi line encryption files will not work with this change

@faustinoaq faustinoaq requested a review from a team February 18, 2018 13:27
@eliasjpr eliasjpr merged commit 2af5fef into amberframework:master Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants