File: README

package info (click to toggle)
secnet 0.6.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,956 kB
  • sloc: ansic: 15,234; python: 1,057; perl: 966; sh: 596; tcl: 484; java: 231; asm: 114; yacc: 89; php: 64; makefile: 48; awk: 40
file content (40 lines) | stat: -rw-r--r-- 932 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
base91_encode -- Encodes data with basE91

	string base91_encode ( string data )

base91_encode() returns data encoded with basE91. This encoding is designed to
make binary data survive transport through transport layers that are not 8-bit
clean, such as mail bodies.

basE91-encoded data takes at most 23% more space than the original data.

Example:
<?php
  require_once 'base91.php';
  $str = 'This is an encoded string';
  echo base91_encode($str);
?>

This example will produce:

nX,<:WRT%yV%!5:maref3+1RrUb64^M

-----

base91_decode -- Decodes data encoded with basE91

	string base91_decode ( string encoded_data )

base91_decode() decodes encoded_data ignoring non-alphabet characters and
returns the original data. The returned data may be binary.

Example:
<?php
  require_once 'base91.php';
  $str = 'nX,<:WRT%yV%!5:maref3+1RrUb64^M';
  echo base91_decode($str);
?>

This example will produce:

This is an encoded string