Libraries tagged by base64 encoder

gringlas/cakephp-base64tofile

0 Favers
586 Downloads

Convert a base64 encoded string (like an image) to an actual file for usage in a standard file upload.

Go to Download


ghero/laravel-dominant-color

2 Favers
69 Downloads

A package that generates a base64 encoded GIF with the dominant color of the given image (for lazy loading use)

Go to Download


firegate666/imageuploader

0 Favers
14754 Downloads

Utility to support image uploading and base64 encoded images in tags

Go to Download


daphascomp/daphascompsms

0 Favers
2 Downloads

# Authentication Requests made to our APIs must be authenticated, there are two ways to do this: 1. Authenticating using your API apiUsername and apiPassword - `Basic Auth` 2. Authenticating using an Auth Token - `Bearer Token` ## Method 1: Basic Auth Basic Authentication is a method for an HTTP user agent (e.g., a web browser) to provide a apiUsername and apiPassword when making a request. When employing Basic Authentication, users include an encoded string in the Authorization header of each request they make. The string is used by the request’s recipient to verify users’ identity and rights to access a resource. The Authorization header follows this format: > Authorization: Basic base64(apiUsername:apiPassword) So if your apiUsername and apiPassword are `onfon` and `!@pas123`, the combination is `onfon:!@pas123`, and when base64 encoded, this becomes `b25mb246IUBwYXMxMjM=`. So requests made by this user would be sent with the following header: > Authorization: Basic b25mb246IUBwYXMxMjM= | Description | | ---------------------------------------------------------------------------------------------- | | **apiUsername** `String` `Required` Your onfon account apiUsername, retrieved from portal | | **apiPassword** `String` `Required` Your onfon account apiPassword, retrieved from portal | ## Method 2: Bearer Tokens This authentication stategy allows you to authenticate using JSON Web Token ``JWT` that will expire after given duration. Each Access Token is a `JWT`, an encoded JSON object with three parts: the `header`, the `payload`, and the `signature`. The following is an example Access Token generated for Conversations > Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c ### Getting the token To generate the token, make a `POST` request to `/v1/authorization` endpoint with your `apiUsername` and `apiPassword` This request should be made from your server and not on the client side such as browser or mobile environment. You will receive a JSON similar to below: `{ "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600}` You can use the token received to make API calls. The token will be valid for value of `validDurationSeconds`, before which you should generate a new token. #### Request Body ``` { "apiUsername": "root", "apiPassword": "hakty11" } ``` #### Response Body ``` { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", "validDurationSeconds": 3600 } ``` #### Example Curl ``` curl --location --request POST 'https://apis.onfonmedia.co.ke/v1/authorization' \ --data-raw '{ "apiUsername": "correctapiUsername", "apiPassword": "correctapiPassword" } ``` #### Making an API call You will be required to pass the token in `Authorization` header prefixed by `Bearer` when calling other endpoints. Example `Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c`

Go to Download


codegor/laravel-file-process

2 Favers
63 Downloads

Laravel file receive with base64 encode, store it and generate file url. Than you can get the file with the url

Go to Download


crodas/base64secret

2 Favers
0 Downloads

Library to encode/decode data with base64 with a custom alphabet, which is determined by a given secret key

Go to Download


mega6382/hab-encryption

0 Favers
20 Downloads

This class can encrypt and decrypt a string with a given key. It takes a given string and encrypts it by adding the code of o the characters in the string with the codes of the key string. The class can also do the opposite process by reverting to the original string using the same key. It can also encode the result encrypted string with base64 and store it on a file.

Go to Download


sskaje/base-converter

1 Favers
19 Downloads

sskaje's BaseXX Encode/Decode class, a PHP implemention of RFC 3548, supports Base16/Base32/Base64 in both LSB and MSB, and another Base32 used by VMware

Go to Download


lessmore92/base-x

1 Favers
74077 Downloads

Encode/decode any base

Go to Download


deemru/abcode

0 Favers
10888 Downloads

ABC (alphabet) encode/decode

Go to Download


yzalis/id-obfuscator

4 Favers
213 Downloads

An efficient reversible ID obfuscator originaly based on base 62 encoding.

Go to Download


ajepe/base62

0 Favers
8 Downloads

base62 encode integer as a string and decode the string back to an integer

Go to Download


brtnetwork/base-x

0 Favers
56 Downloads

Encode/decode any base

Go to Download


lucasmichot/eloquentuuid

2 Favers
18 Downloads

Provides a unique Base62-encoded UUID representing a given state of a model instance

Go to Download


<< Previous