2017 © Pedro Peláez
 

library securemessage

Encrypt and decrypt messages in a secure way.

image

exonet/securemessage

Encrypt and decrypt messages in a secure way.

  • Wednesday, July 25, 2018
  • by exonet
  • Repository
  • 6 Watchers
  • 5 Stars
  • 46 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SecureMessage

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

This package makes it possible to create (very) secure messages and store them in, for example, your database. A secure message is encrypted with a combination of three key 'parts': - A "database key" - to be saved in a database. - A "storage key" - to be stored on a disk/filesystem. - A "verification code" - this code should not be stored anywhere., (*2)

This way, if an attacker has access to the database, it still has only access to a small part of the complete key. The same goes if an attacker has access to the file storage. Even if an attacker has access to the database and the file storage, a part of the complete key is still missing., (*3)

The verification code can be sent (securely) to the receiver of the secure message and with this code, it can decrypt the message and read it., (*4)

Requirements

This package requires at least PHP 7.3 with the sodium extension enabled., (*5)

Install

Via Composer, (*6)

``` bash $ composer require exonet/securemessage, (*7)


## Usage ```php // Create the factory. $secureMessageFactory = new Exonet\SecureMessage\Factory(); // Set the (application wide) meta key. $secureMessageFactory->setMetaKey('A_10_random_characters_long_key.'); // Create a new SecureMessage. Note: it is not encrypted yet! $secureMessage = $secureMessageFactory->make('Hello, world!'); // Encrypt the Secure Message. $encryptedMessage = $secureMessage->encrypt();

Please see the /docs folder for complete documentation and additional examples., (*8)

Change log

Please see releases for more information on what has changed recently., (*9)

Testing

bash $ composer test, (*10)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*11)

Security

If you discover any security related issues please email development@exonet.nl instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

25/07 2018

dev-master

9999999-dev

Encrypt and decrypt messages in a secure way.

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

by Exonet B.V.

25/07 2018

v0.1.1

0.1.1.0

Encrypt and decrypt messages in a secure way.

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

by Exonet B.V.

25/07 2018

dev-release-v0.1.1

dev-release-v0.1.1

Encrypt and decrypt messages in a secure way.

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

by Exonet B.V.

06/07 2018

v0.1.0

0.1.0.0

Encrypt and decrypt messages in a secure way.

  Sources   Download

MIT

The Requires

  • php ~7.1

 

The Development Requires

by Exonet B.V.