Crypt files delphi


















Edited October 21, by Wil van Antwerpen. Posted October 22, Ondrej Kelle I know CryptoLib4Pascal for long time but never used it, it is great, now i was browsing the code one thing caught my eye, i think the PKCS7 padding is wrong, as it does accept 0 byte padding and it should not, in other words you should never end up with a byte value 0 at the end, if the length of data is multiple of k then you go and add full block, i think the relation between these should be redesigned: TPaddedBufferedBlockCipher.

Jacek Laskowski Posted October 23, edited. Posted October 23, Thanks for all the inputs. TurboMagic Posted January 18, Posted January 19, Not sure, but the hash classes support KDF2. After fixing bugs even KDF1 and 3. Posted January 20, No answer! Init ; Hash. Calc Text [ 0 ], Length Text ; Hash.

DigestAsBytes ; Hash. Calc Result [ 0 ], DigestLength ; Hash. DigestAsBytes ; finally Hash. Hello, thanks for this implementation and your effort doing it! Your test will have to be changed into a DUnit test. Thanks TurboMagic. The operator can decrypt the file and -if need be- encrypt a file that only an administrator can access. Asymmetrical keys encrypt in both ways. There are several solutions that make use of these asymmetrical keys.

The one that would be best is the one that you could add to your project in the easiest way while still offering enough protection for your needs. Building your own asymmetrical key algorithm is possible too, if you're a real Math Wizard.

The calculations are complex and involve extremely high prime numbers in most solutions. Sandell said, find a good, existing solution that matches your needs in the best way.

Question Hi i would like to know best encryption technique for text file encryption and ecryption. Create SNoPassword ;. Position ;. InitKeys ;. CompressedSize ;. CRC32 , size then. Create SInvalidPassword ;.

SetLength Buffer , size ;. ReadBuffer Buffer , size ;. DecryptBuffer Buffer ;. Looking forward to the encryption post. Previous Previous post: Delphi Privacy Overview This website uses cookies so that we can provide you with the best user experience possible.

Strictly Necessary Cookies Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings. My Scenario: I have software having two type of users Administartor and Operators. Hemant Kothiyal.

Hemant Kothiyal Hemant Kothiyal 3, 18 18 gold badges 58 58 silver badges 80 80 bronze badges. Add a comment. Active Oldest Votes. As for ready made stuff for Delphi there are a few good packages available: DEC v5.

Sandell K. Sandell 1, 10 10 silver badges 18 18 bronze badges. Good recommendation! Windows itself provides very good implementation for various cryptographic algorithms using Windows CryptoAPI. Wim ten Brink Wim ten Brink Sign up or log in Sign up using Google.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.



0コメント

  • 1000 / 1000