Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Decrypting to a face?

 [1/2] from: tbrownell::yahoo::com at: 11-Apr-2001 3:00


Hello all. Q. How do you decrypt directly to a text face? Using the example in the docs requires "writing" the output to a file, then reading it to the face. Can you "write/binary" to a face? Doc decrypt example... crypt-port: make port! [ scheme: 'crypt algorithm: 'blowfish direction: 'decrypt strength: 128 key: crypt-key padding: true ] open crypt-port insert crypt-port read/binary %outputfile update crypt-port write/binary %inputfile2 copy crypt-port close crypt-port

 [2/2] from: carl:rebol at: 11-Apr-2001 4:59


A. Yes. The copy crypt-port returns the decrypted result, which can be put into a face and displayed: view/new layout [tface: text 400x400] open crypt-port ... tface/text: to-string copy crypt-port show tface For those "secret satellite photos", the decrypted result can be an image too: tface/image: load copy crypt-port show tface Of course, NSA will be monitoring your Internet connection. ;) -Carl