RSA Crypt
  • Package
  • Class

Packages

  • rsacrypt

Classes

  • RsaCrypt

Class RsaCrypt

RsaCrypt - The main class

Package: rsacrypt
Copyright: 2015 Dmitry Mamontov d.slonyara@gmail.com
License: The BSD 3-Clause License
Author: Dmitry Mamontov d.slonyara@gmail.com
Version: Release: 1.0.2
Since: Class available since Release 1.0.2
Link: https://github.com/dmamontov/rsacrypt/
Located at RsaCrypt.php

Methods summary

final public
# __construct( )

Checks for the required functions for encryption.

Checks for the required functions for encryption.

final public boolean
# genKeys( integer $size = 2048 )

It generates private and public keys with the specified size.

It generates private and public keys with the specified size.

Parameters

$size

Returns

boolean
final public boolean
# setPublicKey( string $key )

Initializes public key.

Initializes public key.

Parameters

$key

Returns

boolean
final public boolean
# getPublicKey( )

Gets public key.

Gets public key.

Returns

boolean
final public mixed
# setPrivateKey( string $key )

Initializes private key.

Initializes private key.

Parameters

$key

Returns

mixed
final public mixed
# getPrivateKey( )

Gets private key.

Gets private key.

Returns

mixed
final public mixed
# encrypt( string $data )

Data encryption.

Data encryption.

Parameters

$data

Returns

mixed
final public mixed
# decrypt( string $data )

Decrypt data.

Decrypt data.

Parameters

$data

Returns

mixed
RSA Crypt API documentation generated by ApiGen