string encryption

Basile B. via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 1 18:50:37 PDT 2016


On Saturday, 2 July 2016 at 01:31:17 UTC, Hiemlick Hiemlicker 
wrote:
> On Saturday, 2 July 2016 at 00:39:57 UTC, Basile B. wrote:
>> On Saturday, 2 July 2016 at 00:05:14 UTC, Hiemlick Hiemlicker 
>> wrote:
>>> On Friday, 1 July 2016 at 23:55:08 UTC, Adam D. Ruppe wrote:
>>>> On Friday, 1 July 2016 at 23:23:19 UTC, Hiemlick Hiemlicker 
>>>> wrote:
> Wait! It almost works! ;)
>
> But you are declaring string 1 and string 2 an enum.

On purpose

> If you declare them as a string then the original is embedded 
> in the binary!

Ditto.

If you don't store it at compile time, the non-encrypted form, so 
the literal, will be in the DATA segment.



More information about the Digitalmars-d mailing list