1.0.4 • Published 6 years ago

nodejsphp-cipherbridge v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

How to use:

NODEJS server Example

const bridge = require('nodejsphp-cipherbridge')(uri, {BRIDGE_PUBLICKEY}, {BRIDGE_PRIVATEKEY})

const data = await bridge.send('SELECT * FROM table where id = 2')

PHP server Example

require_once dirname(__FILE__) . '';
$string = decryptCipher({data}, ${BRIDGE_PRIVATEKEY});

echo $string;

When to use:

  • Simple encryption and decryption strings from javascript to php. Server engine - node js 9
  • Simply require the file, and fill details as the following

Generate a new bridge public key & bridge private key

node node_modules/nodejsphp-cipherbridge/generation/generate.js
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago