Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plinker-rpc/base91
A core component, which base91 encodes the payload.
https://github.com/plinker-rpc/base91
Last synced: 12 days ago
JSON representation
A core component, which base91 encodes the payload.
- Host: GitHub
- URL: https://github.com/plinker-rpc/base91
- Owner: plinker-rpc
- License: mit
- Created: 2017-09-18T22:20:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T03:52:45.000Z (over 6 years ago)
- Last Synced: 2024-12-15T08:54:04.015Z (21 days ago)
- Language: PHP
- Homepage: https://plinker-rpc.github.io/base91/
- Size: 119 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
# PlinkerRPC - Base91
Base91 is an advanced method for encoding binary data as ASCII characters.
It is similar to base64, but is more efficient and compact.
The overhead produced by base91 depends on the input data. It amounts at
most to 23% (versus 33% for base64) and can range down to 14%, which typically
occurs on 0-byte blocks. This makes base91 very useful for transferring larger
files over binary unsafe connections like e-mail or terminal lines.This component was originally used as part of the core for encoding the encrypted payload, but is no longer used as to support the PHP extention version of the client.
## Install
Require this package with composer using the following command:
``` bash
$ composer require plinker/base91
```## Client
Creating a client instance is done as follows:
'a secret password'
]
);
// or using global function
$client = plinker_client('http://example.com/server.php', 'a secret password');
## MethodsOnce setup, you call the class though its namespace to its method.
### Encode
Encode a string.
**Call**
``` php
$result = $client->base91->encode('encode this string');
```**Response**
``` text
toX<5+UCmUW6GFso^zZ2(.A
```### Decode
Decode a string.
**Call**
```
$result = $client->base91->decode('toX<5+UCmUW6GFso^zZ2(.A');
```**Response**
```
encode this string
```## Testing
There are no tests setup for this component.
## Contributing
Please see [CONTRIBUTING](https://github.com/plinker-rpc/base91/blob/master/CONTRIBUTING) for details.
## Security
If you discover any security related issues, please contact me via [https://cherone.co.uk](https://cherone.co.uk) instead of using the issue tracker.
## Credits
- [Lawrence Cherone](https://github.com/lcherone)
- [All Contributors](https://github.com/plinker-rpc/base91/graphs/contributors)## Development Encouragement
If you use this project and make money from it or want to show your appreciation,
please feel free to make a donation [https://www.paypal.me/lcherone](https://www.paypal.me/lcherone), thanks.## Sponsors
Get your company or name listed throughout the documentation and on each github repository, contact me at [https://cherone.co.uk](https://cherone.co.uk) for further details.
## License
The MIT License (MIT). Please see [License File](https://github.com/plinker-rpc/base91/blob/master/LICENSE) for more information.
See [organisations page](https://github.com/plinker-rpc) for additional components.