Skip to content

Commit eed91c3

Browse files
committed
Create README.md
1 parent 0f9e8f9 commit eed91c3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# php-openssl-cryptor
2+
3+
This is a simple class demonstrating use of the basic openssl encrypt/decrypt
4+
routines in PHP.
5+
6+
The Cryptor class supports arbitrary encryption and key hashing algorithms, along
7+
with raw, base64 and hex encoding of the encrypted data. Static convenience methods
8+
are provided for the default of AES, but a cryptor instance can be used for more
9+
flexibility. The default uses aes-256-ctr to avoid the need for padding and the related
10+
issues. Unfortunately GCM cannot be used as the PHP openssl module does not provide
11+
a way to retrieve the GCM tag. This is proposed to be remedied in PHP 7.1 when
12+
associated data can be retrieved.

0 commit comments

Comments
 (0)