Dancer2-Plugin-EncryptID

 view release on metacpan or  search on metacpan

lib/Dancer2/Plugin/EncryptID.pm  view on Meta::CPAN

    };

    1;

=head1 SUBROUTINES/METHODS

=head2 dancer_encrypt

C<dancer_encrypt(ID [,PREFIX])> - Encrypt the given ID, returns the encoded hash value.
			     If "PREFIX" is given, it will be added to the ID before encoding.
			     It can be used when decoding to verify the decoded value is valid.

=cut

plugin_keywords 'dancer_encrypt';

sub dancer_encrypt {
	my( $plugin, $text, $prefix ) = @_;

	warn "Missing Clear text ID parameter" unless defined $text;
	return unless defined $text;



( run in 0.677 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )