Files
harbour-core/harbour/extras/hbapollo/tests/test71.prg
Viktor Szakats 340318e66d 2012-07-21 19:09 UTC+0200 Viktor Szakats (vszakats syenar.net)
+ extras
  - examples
  * doc/dirstruc.txt
    * renamed 'examples' to what it is more: 'extras'
2012-07-21 17:10:27 +00:00

24 lines
634 B
Plaintext

/*
* $Id$
*/
/*
sx_Encrypt(), sx_Decrypt()
*/
#include "sixapi.ch"
#include "simpleio.ch"
PROCEDURE MAIN()
LOCAL cString := "Harbour Power"
LOCAL cEncrypted
? 'cEncrypted:=sx_Encrypt( cString, "password" )=', cEncrypted := sx_Encrypt( cString, "password" )
? 'sx_Decrypt( cEncrypted, "password" )=', sx_Decrypt( cEncrypted, "password" )
?
? 'cString=', cString
? 'cString="Harbour Power"', cString := "Harbour Power"
?
? 'cEncrypted:=sx_Encrypt( cString, "password" )=', cEncrypted := sx_Encrypt( cString, "password" )
? 'sx_Decrypt( cEncrypted, "nopass" )=', sx_Decrypt( cEncrypted, "nopass" )