1Crypto.setEncryptionIvec(3kayaK)aya module referenCcreypto.setEncryptionIvec(3kaya)
2
3
4

NAME

6       Crypto::setEncryptionIvec - Set application Ivec
7

SYNOPSIS

9       Void setEncryptionIvec( [Int] ivec )
10

ARGUMENTS

12       ivec  The  new  ivec.  This  must  be  an array of integers, containing
13       exactly 16 integers between 0 and 255. An Exception will be  thrown  if
14       the  parameter  is unsuitable. The ivec is not secret and does not need
15       to be generated in any particular way.
16

DESCRIPTION

18       Sets  the  application  Ivec  used   by   Crypto.encode   (3kaya)   and
19       Crypto.decode  (3kaya) to a new value for the remainder of program exe‐
20       cution. You can obtain the key from a variety of sources (e.g.  a  flat
21       file,  or  a  database  entry) - the easiest way is probably to read 16
22       bytes from a file with IO.getChar (3kaya)
23        The Ivec is not secret, but in some cases you may need it to  be  con‐
24       sistent.
25
26       Web  applications should call this function from within their webconfig
27       function to avoid unpredictable results. Also  to  avoid  unpredictable
28       results,  this  function  may  only be called once per program run, and
29       must be called before any other function that uses the key.  An  Excep‐
30       tion will be thrown if this is called for a second time or too late.
31

AUTHORS

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

LICENSE

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