Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.php > #3022

Grands nombres pour RSA en PHP (was: Algorithme d’authentification distribuée)

From Olivier Miakinen <om+news@miakinen.net>
Newsgroups fr.sci.maths, fr.comp.lang.php
Subject Grands nombres pour RSA en PHP (was: Algorithme d’authentification distribuée)
Followup-To fr.comp.lang.php
Date 2017-04-21 15:10 +0200
Organization There's no cabale
Message-ID <odd0d3$14s2$1@cabale.usenet-fr.net> (permalink)
References (2 earlier) <LsI4KTNKpqZu66Ld6wueia7C1fo@jntp> <odal60$gso$1@cabale.usenet-fr.net> <CGsL7pceZavUHzuV-TzYkAU4IWA@jntp> <odco1o$11nd$1@cabale.usenet-fr.net> <SU-j2Sgqaly0-6mNga16yuQE26k@jntp>

Cross-posted to 2 groups.

Followups directed to: fr.comp.lang.php

Show all headers | View raw


[copie et suivi vers fr.comp.lang.php]

Le 21/04/2017 14:49, Julien Arlandis a écrit :
> 
> en PHP, comment faire pour gérer les très grands nombres, une idée ?

RTFM ? <http://php.net/manual/fr/refs.math.php>

D'après la doc, il semble que tu aies le choix entre BCMath et GMP,
tous deux ayant une fonction qui calcule une puissance en arithmétique
modulaire :
<http://php.net/manual/fr/function.bcpowmod.php>
<http://php.net/manual/fr/function.gmp-powm.php>

-- 
Olivier Miakinen

Back to fr.comp.lang.php | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Grands nombres pour RSA en PHP (was: Algorithme d’authentification distribuée) Olivier Miakinen <om+news@miakinen.net> - 2017-04-21 15:10 +0200
  Re: Grands nombres pour RSA en PHP (was: Algorithme  d’authentification distribuée) Julien Arlandis <julien.arlandis@gmail.com> - 2017-04-21 19:01 +0000

csiph-web