1Crypto.encode(3kaya)         Kaya module reference        Crypto.encode(3kaya)
2
3
4

NAME

6       Crypto::encode - Encode a String using the AES256 algorithm.
7

SYNOPSIS

9       String encode( String msg )
10

ARGUMENTS

12       msg The String to encode
13

DESCRIPTION

15       Encode  a String using the AES256 algorithm.  The value is encoded with
16       the application's  secret  key,  which  is  compiled  in  automatically
17       (unless  overridden  with Crypto.setEncryptionKey (3kaya) ). The return
18       value is base64 encoded and also includes a hash which will be verified
19       when  the  String  is  decoded. The value will only be decodable by the
20       Kaya application that encoded it, provided that the application  secret
21       key is not revealed.
22
23       You must therefore ensure no-one has read access to the application key
24       (whether this is in the Kaya binary or an external source) if you  need
25       to  rely on the integrity of the data (for example, in CGI or webapps).
26       Should you suspect the key is compromised, you can change  an  internal
27       key by recompiling the binary, or using the kaya-rekey utility.
28

AUTHORS

30       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
31       (kaya@kayalang.org). For further information see http://kayalang.org/
32

LICENSE

34       The Kaya standard library is free software;  you  can  redistribute  it
35       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
36       License (version 2.1 or any later version) as  published  by  the  Free
37       Software Foundation.
38
40       Crypto.decode (3kaya)
41
42
43
44Kaya                             December 2010            Crypto.encode(3kaya)
Impressum