Useof SHA1 password

Author Message

Valenti salas

Wednesday 29 December 2004 10:22:30 am

Hi,

I want to save the user passwords in the database as a SHA1 string. Is it posible with any hash type configuration in site.ini?

Maybe is it posible to transform to sha1 in any way?

The other question is, how can I access to the password from a template (I know this password is encrypted), but there isn't any 'password' field in the user class. Is it posible to access to the password encrypted string from a template?

many thanks.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 07:29:34
Script start
Timing: Jan 31 2025 07:29:34
Module start 'layout'
Timing: Jan 31 2025 07:29:34
Module start 'content'
Timing: Jan 31 2025 07:29:35
Module end 'content'
Timing: Jan 31 2025 07:29:35
Script end

Main resources:

Total runtime0.9690 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1328151.2109
Module start 'layout' 0.00480.0023 739.343836.6484
Module start 'content' 0.00710.9610 775.9922821.4531
Module end 'content' 0.96810.0009 1,597.44537.8594
Script end 0.9689  1,605.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.2929160.0002
Check MTime0.00120.1220160.0001
Mysql Total
Database connection0.00080.084010.0008
Mysqli_queries0.933696.3515460.0203
Looping result0.00040.0374440.0000
Template Total0.941897.220.4709
Template load0.00160.167420.0008
Template processing0.940197.023920.4701
Template load and register function0.00130.132910.0013
states
state_id_array0.00130.130310.0013
state_identifier_array0.00110.116720.0006
Override
Cache load0.00130.134280.0002
Sytem overhead
Fetch class attribute can translate value0.00090.092510.0009
Fetch class attribute name0.00140.144710.0014
XML
Image XML parsing0.00010.010610.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00070.0686100.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs