Quiq/Digest.pm

filter: Statementstmt 88.8% 16 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 88.0% 22 / 25 CC 1 SCAR 1.5
CC
1
Cov
89%
md5
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Quiq/LockedCounter.pm ↑ Summary Quiq/SoapWsdlServiceCgi/Demo.pm »
1 # -----------------------------------------------------------------------------
2  
3 =encoding utf8
4  
5 =head1 NAME
6  
7 Quiq::Digest - Erzeuge Digest
8  
9 =head1 BASE CLASS
10  
11 L<Quiq::Object>
12  
13 =cut
14  
15 # -----------------------------------------------------------------------------
16  
17 package Quiq::Digest;
18 8 ▶use base qw/Quiq::Object/;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 8 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 8 our $VERSION = '1.240';
25  
26 8 ▶use Digest::MD5 ();
Subroutine BEGIN: called CC=1 SCAR=0.0
27  
28 # -----------------------------------------------------------------------------
29  
30 =head1 METHODS
31  
32 =head2 Klassenmethoden
33  
34 =head3 md5() - MD5 Digest
35  
36 =head4 Synopsis
37  
38 $md5 = $class->md5(@data);
39  
40 =head4 Arguments
41  
42 =over 4
43  
44 =item @data
45  
46 Skalare Werte beliebiger Anzahl und Länge.
47  
48 =back
49  
50 =head4 Returns
51  
52 32 Zeichen Hex-String.
53  
54 =head4 Description
55  
56 Erzeuge einen MD5 Message Digest für die Daten @data und liefere diesen
57 als 32 Zeichen langen Hex-String zurück.
58  
59 =cut
60  
61 # -----------------------------------------------------------------------------
62  
63 0 ▶sub md5 {
Subroutine md5: not called CC=1 SCAR=6.9
Pod documented
64 0 my $class = shift;
65 # @_: @data
66 0 return Digest::MD5::md5_hex(@_);
67 }
68  
69 # -----------------------------------------------------------------------------
70  
71 =head1 VERSION
72  
73 1.240
74  
75 =head1 AUTHOR
76  
77 Frank Seitz, L<http://fseitz.de/>
78  
79 =head1 COPYRIGHT
80  
81 Copyright (C) 2026 Frank Seitz
82  
83 =head1 LICENSE
84  
85 This code is free software; you can redistribute it and/or modify
86 it under the same terms as Perl itself.
87  
88 =cut
89  
90 # -----------------------------------------------------------------------------
91  
92 8 1;
93  
94 # eof
« Quiq/LockedCounter.pm ↑ Summary Quiq/SoapWsdlServiceCgi/Demo.pm »