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

Added Phalcon\Security\Random:base62 #12858

Merged
merged 1 commit into from
May 21, 2017
Merged

Added Phalcon\Security\Random:base62 #12858

merged 1 commit into from
May 21, 2017

Conversation

sergeyklay
Copy link
Contributor

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines?
  • I have checked that another pull request for this purpose does not exist.
  • I wrote some tests for this PR.

Small description of change: Added Phalcon\Security\Random:base62 to provide the largest value that can safely be used in URLs without needing to take extra characters into consideration.

use Phalcon\Security\Random;

$random = new Random();

// Random base62 string
echo $random->base62(); // z0RkwHfh8ErDM1xw

Thanks

@sergeyklay sergeyklay self-assigned this May 21, 2017
@sergeyklay sergeyklay merged commit 22c403b into phalcon:3.2.x May 21, 2017
@sergeyklay sergeyklay deleted the feature/security/random/base_62 branch May 21, 2017 12:50
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.

1 participant