Download the PHP package zheeknodev/sipher without Composer
On this page you can find all versions of the php package zheeknodev/sipher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zheeknodev/sipher
More information about zheeknodev/sipher
Files in zheeknodev/sipher
Package sipher
Short Description A simple PHP encryption library
License MIT
Homepage https://github.com/ZheeknoDev/Sipher
Informations about the package sipher
Welcome to Sipher
A simple PHP encryption library
Feature
- Generate a random string
- Generate a random password
- Hashing the password
- Verifying password
- One-way encryption a string
- Verifying the one-way encrypted string
- Generate random encrypt string
- Encryption
- Verifying the encryption
Getting Started
install composer package
./index.php
Insert "Your some secret words" as a secret key when calling new an object class. If You don't have a secret key, use \Sipher\Sipher::randomString(32); to generate a random string as a secret key.
Generate a random string
Generate a random password
You can adjust the length of characters, for example, is 10 chars.
Hashing the password
Verifying password
Return the result as boolean
One-way encryption a string
Verifying the one-way encrypted string
Return the result as boolean
Encryption
The result will return as object that's
- encrypted - the encrypted string
- check_hash - the optional string use to decrypt
- key - the secret key use to decrypt
If you need insert your word to encrypt
output
Verifying encryption
Return the result as boolean
License
(MIT License)
Copyright (c) 2020 ZheeknoDev ([email protected])
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.