Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2018, 06:28 AM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 382
Default File Encryption

Is there any way to encrypt file but decrypt it without creating another file.

Last edited by robert; 04-21-2018 at 12:38 PM.
Reply With Quote
  #2  
Old 04-21-2018, 01:56 PM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,059
Default

See those links:

http://www.swissdelphicenter.ch/en/showcode.php?id=1473
http://www.swissdelphicenter.ch/en/showcode.php?id=1629
__________________
Regards,
Abdulaziz Jasser
Reply With Quote
  #3  
Old 04-22-2018, 06:26 AM
robert robert is offline
Senior Member
 
Join Date: Sep 2014
Posts: 382
Default

there are many method for this but is it possible to decrypt encrypted file without creating another output decrypted file.
Reply With Quote
  #4  
Old 04-24-2018, 07:16 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,297
Default

A TMemoryStream is what it says, a MEMORY stream, so still no file untill you call SaveToFile.
How hard is it to call MemoryDecrypt and get it's output in a TMemoryStream? O wait, that example is already given in the FileCrypt function...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 05:48 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.