From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-14-2007 08:10 AM
01-14-2007 09:15 AM
01-14-2007 09:10 PM - edited 01-14-2007 09:10 PM
Hi Jack1,
Forgive me for stepping in, but I suspect jack1 may misunderstand what "binary file" means. If you don't want people to be able to understand the data written to a file, don't write the "plain text" to the file!
How important are the passwords you want to store? There are some powerful encryption tools available - search "blowfish" for instance. If you only want to make it hard for someone using a text-editor, then a quick&dirty way to "encrypt" data is by using the [boolean] XOR function. One nice thing about XOR is that a SECOND XOR reverses the results of the first - so you can use exactly the same code to both "encrypt" and "decrypt". An example is attached!
Cheers.
Message Edited by tbd on 01-14-2007 09:11 PM
01-15-2007 01:16 PM