php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48925 openssl_digest_file
Submitted: 2009-07-15 08:53 UTC Modified: 2021-08-30 15:43 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: misc at atomas dot com Assigned: cmb (profile)
Status: Wont fix Package: OpenSSL related
PHP Version: 5.3.0 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: misc at atomas dot com
New email:
PHP Version: OS:

 

 [2009-07-15 08:53 UTC] misc at atomas dot com
Description:
------------
md5($string) has md5_file($filename)
would it be possible to have
openssl_digest_file($filename, $method) ?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 15:24 UTC] jani@php.net
-Package: Feature/Change Request +Package: OpenSSL related
 [2021-08-30 15:43 UTC] cmb@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-08-30 15:43 UTC] cmb@php.net
> would it be possible to have
> openssl_digest_file($filename, $method) ?

Sure:

<?php
function openssl_digest_file($filename, $method) {
    return openssl_digest(file_get_contents($filename), $method);
}
?>
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 02:03:43 2023 UTC