Project

General

Profile

Actions

Feature #21407

closed

Provide a t3lib library for symmetric encryption

Added by Marcus Krause about 15 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-10-30
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

Description

TYPO3 lacks general encryption support.
This RFC is about an easy to use t3lib library that provides symmetric encryption (!=asymmetric encryption/public key-private key).

The attached library is currently at proof of concept state; so please don't use it inproduction environments and expect API to change.

The library is a wrapper on mcrypt PHP extension.

The easies use case is to instanicate the t3lib library and use methods encrypt()/decrypt() with a given key (e.g. TYPO3's encryption key) and message to be encrypted.
Depending on the used encryption mode, you need to retrieve an initialisation vector (IV) using getCurrentIV() to be able to decrypt an encrypted message.

The IV doesn't need to be secret (so please don't use TYPO3's encryption key for it) and could easily transmitted/displayed together with an encrypted message.

Please test, comment and send suggestions.

What needs to be improved: * more testcases for different ciphers/modes * determine proper default settings (ciphers/modes) * use exceptions instead of null/false method results * ...

(issue imported from #M12402)


Files

Actions

Also available in: Atom PDF