FreeFile</li><li>
OpenFichierCrypte
ForBinary Access
WriteAs fd</li><li> <samp>'Ouverture du fichier source</samp></li><li> fs
FreeFile</li><li>
OpenFichier
ForBinary Access Read As fs</li><li>CheckSumMP =
String$(10, <var>" "</var>)</li>
Fori = 1 To
Len(MotPasse)</li>
Format(
Val(CheckSumMP) +
Asc(
Mid$(MotPasse, i, 1)))</li>
Nexti</li>
Put#fd, , CheckSumMP</li>
Fori = 0 To
LOF(fs) - 1</li>
Get#fs, , OS</li>
Asc(
Mid$(MotPasse, PtrMotPasse, 1))</li>
If(
CInt(OS) +
CInt(cle)) > 255
Then</li>
CInt(OS) +
CInt(cle) - 256</li>
Else</li>
End
If</li>
Put#fd, , OD</li>
IfPtrMotPasse >
Len(MotPasse)
Then</li>
End
If</li>
Nexti</li>
Closefs</li>
Closefd</li>