Plugin Directory

Changeset 2409089


Ignore:
Timestamp:
10/29/2020 01:39:03 PM (5 years ago)
Author:
wpbusters
Message:

RS support without gmp

Location:
passwordless-wp/trunk
Files:
1 added
5 edited
1 moved

Legend:

Unmodified
Added
Removed
  • passwordless-wp/trunk/build/asset-manifest.json

    r2403019 r2409089  
    22  "login": {
    33    "vendors.js": "vendors.5f2307b1.chunk.js",
    4     "login.css": "login.7f31c0fb.css",
     4    "login.css": "login.67d5989c.css",
    55    "login.js": "login.17909b30.js"
    66  },
  • passwordless-wp/trunk/includes/scripts-login.php

    r2403019 r2409089  
    1717    'errorNoCreds' => __('No credentials available or not confirmed. Please try more or re-attach using Username and Password.', 'passwordless-wp'),
    1818    'tokenAdded' => __('Your token was registered, now you can use it to login.', 'passwordless-wp'),
    19     'loginDesc' => __("Use Face ID or Touch ID to login in your account.", 'passwordless-wp'),
     19    'loginDesc' => __("Use Face ID or Touch ID to log into your account.", 'passwordless-wp'),
    2020    'requiredSSL' => __("Secure context are required. You must have HTTPS and SSL enabled.", 'passwordless-wp'),
    2121    'anotherUser' => __("Choose user", 'passwordless-wp'),
  • passwordless-wp/trunk/passwordless-wp.php

    r2403566 r2409089  
    88 * Author URI: https://wpbusters.com/
    99 * Text Domain: passwordless-wp
    10  * Version: 1.1.4
     10 * Version: 1.1.6
    1111 * Domain Path: /languages
    1212 *
     
    2222
    2323define('PLWP_SLUG', 'passwordless-wp');
    24 define('PLWP_VERSION', '1.1.4');
     24define('PLWP_VERSION', '1.1.6');
    2525define('PLWP_FOLDER', plugin_dir_path(__FILE__));
    2626define('PLWP_URL', plugin_dir_url(__FILE__));
  • passwordless-wp/trunk/readme.md

    r2403566 r2409089  
    4444
    4545Passwordless WP requires HTTPS and SSL secure connection or localhost/127.0.0.1 environment. It supports only platform authenticator like Touch ID, Face ID, Windows Hello, Fingerprint and etc.
     46
     47= Help with ideas and testing =
     48
     49If you want to discuss and suggest any new ideas,
     50Join to Early Access Team group here: https://www.facebook.com/groups/676882319616540/
    4651
    4752# Trademark notices
     
    98103== Changelog ==
    99104
     105v1.1.6
     106* RS support without gmp
     107
    100108v1.1.3
    101109* PHP 7.2 fix in code trailing comma
  • passwordless-wp/trunk/vendor/web-auth/cose-lib/src/Key/RsaKey.php

    r2403019 r2409089  
    1515
    1616use Assert\Assertion;
     17use Base64Url\Base64Url;
     18use Brick\Math\BigInteger;
    1719use FG\ASN1\Universal\BitString;
    1820use FG\ASN1\Universal\Integer;
     
    184186    }
    185187
    186     private function fromBase64ToInteger(string $value): string
    187     {
    188         return gmp_strval(gmp_init(current(unpack('H*', $value)), 16), 10);
    189     }
     188    private function fromBase64ToInteger($value)
     189    {
     190        $hex = current(unpack('H*', $value));
     191        return BigInteger::fromBase($hex, 16)->toBase(10);
     192    }
     193
     194
     195    // private function fromBase64ToInteger(string $value): string
     196    // {
     197    //     return gmp_strval(gmp_init(current(unpack('H*', $value)), 16), 10);
     198    // }
    190199
    191200    private function pem(string $type, string $der): string
    192201    {
    193         return sprintf("-----BEGIN %s-----\n", mb_strtoupper($type)).
    194             chunk_split(base64_encode($der), 64, "\n").
     202        return sprintf("-----BEGIN %s-----\n", mb_strtoupper($type)) .
     203            chunk_split(base64_encode($der), 64, "\n") .
    195204            sprintf("-----END %s-----\n", mb_strtoupper($type));
    196205    }
Note: See TracChangeset for help on using the changeset viewer.