SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Algorithm-CouponCode rpm build for : OpenSuSE. For other distributions click perl-Algorithm-CouponCode.

Name : perl-Algorithm-CouponCode
Version : 1.005 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.2.1 Date : 2023-01-27 17:22:31
Group : Development/Libraries/Perl Source RPM : perl-Algorithm-CouponCode-1.005-lp154.2.1.src.rpm
Size : 0.03 MB
Packager : https://www_suse_com/
Summary : Generate and validate \'CouponCode\' strings
Description :
A \'Coupon Code\' is made up of letters and numbers grouped into 4 character
\'parts\'. For example, a 3-part code might look like this:

1K7Q-CTFM-LMTC

Coupon Codes are random codes which are easy for the recipient to type
accurately into a web form. An example application might be to print a code
on a letter to a customer who would then enter the code as part of the
registration process for web access to their account.

Features of the codes that make them well suited to manual transcription:

* The codes are not case sensitive.

* Not all letters and numbers are used, so if a person enters the letter \'O\'
we can automatically correct it to the digit \'0\' (similarly for I => 1, S
=> 5, Z => 2).

* The 4th character of each part is a checkdigit, so client-side scripting
can be used to highlight parts which have been mis-typed, before the code
is even submitted to the application\'s back-end validation.

* The checkdigit algorithm takes into account the position of the part being
keyed. So for example \'1K7Q\' might be valid in the first part but not in
the second so if a user typed the parts in the wrong boxes then their error
could be highlighted.

* The code generation algorithm avoids \'undesirable\' codes. For example any
code in which transposed characters happen to result in a valid checkdigit
will be skipped. Any generated part which happens to spell an
\'inappropriate\' 4-letter word (e.g.: \'P00P\') will also be skipped.

The Algorithm-CouponCode distribution includes a Javascript implementation
of the validator function, in the form of a jQuery plugin. You can include
this in your web application to do client-side validation and highlighting
of errors.

_Note_ the cc_validate function and the Javascript plugin only validate
that the code is \'well-formed\' (i.e.: each part has a valid checkdigit).
Checking whether the code is in fact \'valid\' is left up to your application
and would typically involve looking for the code in a database. If you use
the Javascript plugin, you might choose to tweak the CSS to keep the red
highlighting of checksum errors but remove the green highlighting which
might imply the code was correct.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Algorithm-CouponCode-1.005-lp154.2.1.noarch.rpm
     

Provides :
perl(Algorithm::CouponCode)
perl-Algorithm-CouponCode

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Digest::SHA)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/Algorithm
/usr/lib/perl5/vendor_perl/5.26.1/Algorithm/CouponCode.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-Algorithm-CouponCode
/usr/share/doc/packages/perl-Algorithm-CouponCode/Changes
/usr/share/doc/packages/perl-Algorithm-CouponCode/LICENSE
/usr/share/doc/packages/perl-Algorithm-CouponCode/README
/usr/share/man/man3/Algorithm::CouponCode.3pm.gz

 
ICM