This quick tutorial will walk you through ways on how to encrypt, decrypt, verify passwords in PHP. No rocket science. Free example code download included. Learn How To Encrypt and Decrypt in C Programming. C Program for Encryption and Decryption of Contents of File with Caesar Cipher Mechanism.
Encrypt Decrypt Vb6 Source Code Planet
Procedure Name | Type | Description |
(Declarations) | Declarations | Declarations and private variables for the CEncryption class. |
InputFileName | Property | Get the name of the input file. |
OutputFileName | Property | Get the name of the output file. |
Password | Property | Get the password. |
Class_Initialize | Initialize | Set initial values to defaults which may be overridden with property settings. |
EncryptFile | Method | Encrypt the file specified in m_strInputFileName to the file specified in m_strOutputFileName. This procedure uses buffered file reads and writes for better performance. The encrypted file produced by the method is reversible. This means that if you encrypt a file, reverse the InputFileName and OutputFileName properties, and call this method again, the original file is restored. Note: The same password must be supplied to successfully decrypt the file. This method also raises an event called file progress. This event can be used to track the progress of the file being processed. See the example tab for an example of how to use this event. This method also uses a file buffer. Using a file buffer significantly speeds up the performance of this method. |
EncryptString | Method | Encrypt/Decrypt the passed string with XOR encryption. The encrypted string produced by the method is reversible. This means that if you encrypt a string, then encrypt the results of that operation, the original string is restored. Note: The same password must be supplied to successfully decrypt the string. See the example tab for a demonstration of this. If you need an ASCII version of this function, use the EncryptStringAscii method. |
EncryptStringAscii | Method | Encrypt/Decrypt the passed string with XOR encryption, returning the result in ASCII format. The encrypted string produced by the method is reversible. This means that if you encrypt a string, then encrypt the results of that operation, the original string is restored. Note: The same password must be supplied to successfully decrypt the string. See the example tab for a demonstration of this. The EncryptStringAscii method returns the result in ASCII format. If you need to pass the results of the EncryptString function on the command line, or use it external to your program, it is recommended that you use the ASCII version of this function. |
EncryptByte | Private | Encrypt one byte, and modify the password. Modifying the password as we encrypt makes the encryption slightly harder to break. |
ReadFile | Private | Read the specified number of bytes from the file. This function significantly increases the speed of processing files. The alternative to using a file buffer is reading a byte at a time from the file. |
Chilkat • HOME • Android™ • Classic ASP • C • C++ • C# • Mono C# • .NET Core C# • C# UWP/WinRT • DataFlex • Delphi ActiveX • Delphi DLL • Visual FoxPro • Java • Lianja • MFC • Objective-C • Perl • PHP ActiveX • PHP Extension • PowerBuilder • PowerShell • PureBasic • CkPython • Chilkat2-Python • Ruby • SQL Server • Swift 2 • Swift 3,4,5... • Tcl • Unicode C • Unicode C++ • Visual Basic 6.0 • VB.NET • VB.NET UWP/WinRT • VBScript • Xojo Plugin • Node.js • Excel • Go
|
© 2000-2021 Chilkat Software, Inc. All Rights Reserved.