An open API service indexing awesome lists of open source software.

https://github.com/ammarfaizi2/teacrypt

Teacrypt Encryption
https://github.com/ammarfaizi2/teacrypt

decryption encryption security security-tools whitehat

Last synced: 2 months ago
JSON representation

Teacrypt Encryption

Awesome Lists containing this project

README

          

# Teacrypt

## Encryption solution

## Keunggulan Teacrypt
- Proses enkripsi menggunakan salt. Sehingga hasil enkripsi selalu berbeda walaupun dengan key yang sama.
- Hasil enkripsi dicompress dengan gzdeflate.
- Hasil compress akan diencode dengan base64. Sehingga hasil return akhir selalu printable.
- Hasil dekripsi selalu sama seperti semula jika didekripsi dengan key yang sama.

### Contoh
```php
($encrypted_string1 == $encrypted_string2),
"encrypted_string" => array($encrypted_string1, $encrypted_string2),
"decrypted_string" => array($decrypted_string2, $decrypted_string2)
));

```

Akan menghasilkan

```
array(3) {
["hasil kesamaan enkripsi 1 dan 2"]=>
bool(false)
["encrypted_string"]=>
array(2) {
[0]=>
string(24) "LikCOgUyUFLUmnwMlHXlmLAA"
[1]=>
string(24) "rUjyKKDi3WLS3zadlPndULAA"
}
["decrypted_string"]=>
array(2) {
[0]=>
string(11) "hello world"
[1]=>
string(11) "hello world"
}
}
```

## Installation
Add composer.json

```json
{
"require": {
"ammarfaizi2/teacrypt": "1.4"
}
}
```