跳轉到內容

Rebol 程式設計/encloak

來自華夏公益教科書,開放的書籍,開放的世界
ENCLOAK data key /with 

根據金鑰對字串或二進位制檔案進行混淆。

ENCLOAK 是一個本地值。

  • data -- 要混淆的字串(已修改)(型別:any-string)
  • key -- 要使用的金鑰(型別:any-string)
  • /with -- 按原樣使用金鑰(為了速度,不進行雜湊)

原始碼

[編輯 | 編輯原始碼]
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)"
]
華夏公益教科書