Cryptographie asymétrique en PHP.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • b.croissant@gmail.com

    Cryptographie asymétrique en PHP.

    Hello,
    Is it possible to crypt and decrypt data which is based on public-key
    technology, like RSA? (One private key and one public key)
    With the library mcrypt?

    Thanks.

  • Daniel Tryba

    #2
    Re: Cryptographie asym?trique en PHP.

    b.croissant@gma il.com wrote:[color=blue]
    > Is it possible to crypt and decrypt data which is based on public-key
    > technology, like RSA? (One private key and one public key)[/color]

    Yes.
    [color=blue]
    > With the library mcrypt?[/color]

    According to the docs (and my limited knowledge of encryption): no

    You could use the openssl extension or "pure" PHP scripts (which
    propably depend on bc or gmp).

    Comment

    • Colin McKinnon

      #3
      Re: Cryptographie asymétrique en PHP.

      b.croissant@gma il.com wrote:
      [color=blue]
      > Hello,
      > Is it possible to crypt and decrypt data which is based on public-key
      > technology, like RSA? (One private key and one public key)
      > With the library mcrypt?
      >[/color]

      No.

      But on a sensible box you should be able to shell out to run gpg or openssl
      or....

      C.

      Comment

      Working...