Encrypt Data using Public Key
        Posted  
        
            by prithvi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by prithvi
        
        
        
        Published on 2010-03-17T09:13:48Z
        Indexed on 
            2010/03/17
            9:21 UTC
        
        
        Read the original article
        Hit count: 271
        
php
|encryption-asymmetric
$key = file_get_contents('http://keyserver.pramberger.at/pks/lookup?op=get&search=uid');
after getting public key in '$key' variable i need to encrypt the data using this public key.
the key must be start with ----Begin pgp block ---to end pgp block----.
How this can be done in php?
© Stack Overflow or respective owner