So far, you have created the following settings:
| IP address: | $settings->ipaddress$ |
| Netmask: | $settings->netmask$ |
my $self = $_;
my $cgi = $self->{cgi};
$self->{settings}->{dns1} = $cgi->param('dns1');
$self->{settings}->{dns2} = $cgi->param('dns2');
''
So far, you have created the following settings:
| IP address: | $settings->ipaddress$ |
| Netmask: | $settings->netmask$ |
| DNS Server 1: | $settings->dns1$ |
| DNS Server 2: | $settings->dns1$ |
The main advantage of CGI::EncryptForm is that it is not only serializing
data, but encrypting and decrypting as well.
=head1 METHOD INTERFACE
These are the methods offered by the HTML::EP::CGIEncryptForm class:
=head2 Encrypting a structured variable into a string
or, from within ep-perl:
$self->_ep_cef_encrypt({'source' => 'source_var',
'dest' => 'dest_var',
'secret_key' => 'some_key',
'usecharset' => 1});
(Instance method) Takes the complex EP variable $source_var$ (aka
$self->{'source_var'}) and encrypts it into a string. The I
attribute is used for encrypting the string. The optional attributes
I and I are passed to the corresponding methods
of CGI::EncryptForm.
If the I attribute is present, the string is stored in the EP
variable $dest_var$. If not, the output is returned and possibly
inserted into the HTML stream.
=head2 Decrypting a structured variable from a string
or, from within ep-perl:
$self->_ep_cef_decrypt({'source' => 'source_var',
'dest' => 'dest_var',
'secret_key' => 'some_key',
'usecharset' => 1});
(Instance method) Takes the EP variable $source_var$ (aka
$self->{'source_var'}) and decrypts it into a complex Perl object.
The I attribute is used for decrypting the string. The
optional attributes I and I are passed to the
corresponding methods of CGI::EncryptForm.
If the I attribute is present, the Perl object is stored in
the EP variable $dest_var$. If not, the output is returned and
possibly inserted into the HTML stream.
=head1 SEE ALSO
L, L, L
=cut