Rebol Programming/encloak

From Wikibooks, open books for an open world
Jump to navigation Jump to search

USAGE:

[edit | edit source]
ENCLOAK data key /with 

DESCRIPTION:

[edit | edit source]

Scrambles a string or binary based on a key.

ENCLOAK is a native value.

ARGUMENTS

[edit | edit source]
  • data -- String to scramble (modified) (Type: any-string)
  • key -- Key to use (Type: any-string)

REFINEMENTS

[edit | edit source]
  • /with -- Use key as-is (for speed, no hashing)

SOURCE CODE

[edit | edit source]
encloak: native[
    "Scrambles a string or binary based on a key." 
    data [any-string!] "String to scramble (modified)" 
    key [any-string!] "Key to use" 
    /with "Use key as-is (for speed, no hashing)"
]