Skip to content

Autopad secrets#22

Open
yrps wants to merge 5 commits into
tadeck:masterfrom
yrps:autopad
Open

Autopad secrets#22
yrps wants to merge 5 commits into
tadeck:masterfrom
yrps:autopad

Conversation

@yrps
Copy link
Copy Markdown

@yrps yrps commented Jun 16, 2017

Discussed in #20. This changeset makes @hobarrera's example accepted without manual padding.

The funny looking for length in [2, 4, 5, 7, 10, 12, 13, 15]: in the tests is to match the if-else cascade in Lib/base64.py:
https://github.com/python/cpython/blob/c7ff163abf428d73d4054754db3c99d06487e3ad/Lib/base64.py#L170

The autopad functionality was controlled by parameter which I then removed in commit b1e5d0a. If you want to keep it optional, delete that commit.

Copy link
Copy Markdown

@WhyNotHugo WhyNotHugo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread README.rst
+---------+------------+------------------------------------------------------+
| Version | Date | Changes |
+=========+============+======================================================+
| 1.0.2 | 2017-06-16 | - automatically pad secrets to expected length |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If autopad=True is removed, this should push the MINOR, not PATCH.

@yrps
Copy link
Copy Markdown
Author

yrps commented Jun 16, 2017

Thanks, corrected the version.

Also removed a call to a pseudoprivate base64.py method, which fixed some CI jobs.
The Travis config looks like it still needs an update, with timecop refusing to run below 3.3.

@WhyNotHugo
Copy link
Copy Markdown

Timecop apparently dropped py33. freezegun looks like it covers the same use cases and is a lot more mature.

@yrps yrps mentioned this pull request Jun 17, 2017
@valera-rozuvan
Copy link
Copy Markdown

This PR fixes the situation when trying to use onetimepass to generate codes for amazon.com service to login. Looks like all amazon.com secrets for 2FA cause the underlying issue. Can we merge this PR please?

@valera-rozuvan
Copy link
Copy Markdown

@tadeck , @WhyNotHugo - ping. Can I help in any way to get this merged faster?

@tadeck
Copy link
Copy Markdown
Owner

tadeck commented Jan 13, 2022

@tadeck , @WhyNotHugo - ping. Can I help in any way to get this merged faster?

Apparently the build is failing: https://travis-ci.org/github/tadeck/onetimepass/builds/243858616
Looks like this PR is a welcome change, happy to merge it after we get through with making the builds green again.

@valera-rozuvan
Copy link
Copy Markdown

Can we drop 3.2 version of Python? See .travis.yml: line 5

The build fail specifically because some requirements don't work with versions of Python 3.x below 3.3.

@WhyNotHugo
Copy link
Copy Markdown

WhyNotHugo commented Jan 14, 2022

Dropping Python 3.2 sounds reasonable to me (note: I'm not a maintainer here, but still, that version is waaay past it's end of life).

@valera-rozuvan valera-rozuvan mentioned this pull request Jan 17, 2022
@valera-rozuvan
Copy link
Copy Markdown

OK - I have a PR for dropping v3.2 of Python - #30 . We should merge that one first.

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.

4 participants