You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Show me some love](#show-me-some-love-heart_eyes):heart_eyes::beer:
28
27
29
28
# Install
@@ -35,38 +34,30 @@ Don't worry, dcrypt does not have any dependencies of its own.
35
34
composer require "mmeyer2k/dcrypt=^13.0"
36
35
```
37
36
38
-
# Features
39
-
40
37
## Block Ciphers
41
38
42
39
The dcrypt library helps application developers avoid common mistakes in crypto implementations that leave data at risk while still providing flexibility in its options for crypto enthusiasts.
43
-
Dcrypt strives to make correct usage simple, but it _is_ possible to use dcrypt incorrectly.
44
-
Fully understanding the instructions is important.
45
-
46
-
Dcrypt's functions __require__ the use of a high entropy __2048 byte__ (minimum) key encoded with base64.
40
+
Dcrypt's block cipher functions require the use of a high entropy 256 bit, base64-encoded key.
47
41
To generate a new key, execute this on the command line:
Since PHP 7.1 supports native AEAD encryption modes, using GCM would be safest option for most applications.
61
52
Dcrypt will handle the AEAD authentication tag, SHA3-256 HMAC ([Keccak](https://en.wikipedia.org/wiki/SHA-3)), initialization vector and encrypted message as a single unencoded string.
62
53
63
54
```php
64
55
<?php
65
-
$key = "replace this with the output of: head -c 2048 /dev/urandom | base64 -w 0 | xargs echo";
0 commit comments