Name : perl-MIME-Base64-URLSafe
| |
Version : 0.10.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-24 22:18:29
|
Group : Unspecified
| Source RPM : perl-MIME-Base64-URLSafe-0.10.0-lp156.1.1.src.rpm
|
Size : 0.00 MB
| |
Packager : https://www_suse_com/
| |
Summary : Perl version of Python\'s URL-safe base64 codec
|
Description :
This module is a perl version of python\'s URL-safe base64 encoder / decoder.
When embedding binary data in URL, it is preferable to use base64 encoding. However, two characters (\'+\' and \'/\') used in the standard base64 encoding have special meanings in URLs, often leading to re-encoding with URL-encoding, or worse, interoperability problems.
To overcome the problem, the module provides a variation of base64 codec compatible with python\'s urlsafe_b64encode / urlsafe_b64decode.
Modification rules from base64:
use \'-\' and \'_\' instead of \'+\' and \'/\' no line feeds no trailing equals (=)
The following functions are provided:
urlsafe_b64encode($str) urlsafe_b64decode($str)
If you prefer not to import these routines to your namespace, you can call them as:
use MIME::Base64::URLSafe (); $encoded = MIME::Base64::URLSafe::encode($decoded); $decoded = MIME::Base64::URLSafe::decode($encoded);
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |