Project

General

Profile

Actions

Bug #19653

closed

Provide a random byte generator in TYPO3 Core

Added by Marcus Krause almost 16 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-11-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Currently TYPO3 does not provide a method for creation of random bytes. Random bytes are needed for cryptographic operations. Think of getting salted password hashes into core. Then the used salt should be as random as possible.
As such method could be useful for TYPO3 extension developers or other use cases for TYPO3 Core, it should go into t3lib_div.

(issue imported from #M9852)


Files

9852.diff (1.28 KB) 9852.diff Administrator Admin, 2008-11-28 07:01
9852_v3.diff (1.27 KB) 9852_v3.diff Administrator Admin, 2008-11-29 05:27
Actions #1

Updated by Marcus Krause almost 16 years ago

Added v3 of the patch. Improvements:

  • removed unnecessary empty $random_state test
  • added OS test before accessing /dev/urandom
  • md5 hashing replaced by sha1
Actions #2

Updated by Marcus Krause almost 16 years ago

committed to trunk revs 4520 & 4521

Actions

Also available in: Atom PDF