Example code sharing for PHP implementation of oath dynamic password algorithm

Source: Internet
Author: User
Tags ord sha1 sha1 hash

Example code sharing for PHP implementation of oath dynamic password algorithm

<? PHP/** * This program was free software:you can redistribute it and/or modify * it under the terms of the GNU general Public License as published by * The free software Foundation, either version 3 of the License, or * (in your option) an  Y later version. * * This program was distributed in the hope that it'll be useful, * but without any WARRANTY;  Without even the implied warranty of * merchantability or FITNESS for A particular PURPOSE.  See the * GNU general public License for more details.  * * You should has received a copy of the GNU general public License * along.  If not, see 

The above content is saved as oath.php, and the test runs in two ways:

1. Run command line: Php.exe oath.php

Path problem Everybody knows

2, deployed in the Web directory, through the Web Access

Example: http://localhost/oath.php

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.