I've downloaded Lockbox3 about a week ago and i can't use it, and i couldn't understand the demo because it's complex i couldn't get the codes i want from it, I'd like to use lockbox 3 AES-256 encryption to encrypt strings in Delphi.
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- “Zero out” sensitive String data in Swift
- Is TWebBrowser dependant on IE version?
- High cost encryption but less cost decryption
相关文章
- Best way to implement MVVM bindings (View <-> V
- decrypt TLS 1.2 AES-GCM packet
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- Decrypting EnvelopedCms with non-default Algorithm
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
The method and property names pretty much say it all. Here is a method which encrypts a string and then decrypts it back again, assuming you've setup the codec properties at design time, which are also self-describing.
Have another look at the demo program. The handler for Encrypt button, encrypts a file instead of a string. That aside, if you strip away the decorative fluff, like posting information to a memo, and handling exceptions if the user specified a non-existant file, its increddibly simple - it basically boils down to one line...
To encrypt a string, you call EncryptString(). To encrypt a file you call EncryptFile().
The demo shows the setup, to wit:
and Bob's your uncle!
Let me know if you have any problems.