Encryption Password "String"

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
Arctous
Posts: 3
Joined: Wed Mar 01, 2017 9:14 pm

Encryption Password "String"

Post by Arctous »

I want to hand ES2 a key that I move around as bytes. My plan was to convert it to an ASCII string. So, my question is: are there any limitations on the ASCII character range than can be in the password "string" (besides 0x0)? I want to be able to use 0x01-0xff.
Thanks!
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Encryption Password "String"

Post by Joel »

Hi there,

Easy Save uses C#'s encryption libraries, which simply convert the password to a byte array underneath, so the actual characters of the string should not matter. All that matters is that the string is identical each time.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Arctous
Posts: 3
Joined: Wed Mar 01, 2017 9:14 pm

Re: Encryption Password "String"

Post by Arctous »

Thanks, Joel. Makes sense. What are you using for the IV?
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Encryption Password "String"

Post by Joel »

In Easy Save 2, Rfc2898DeriveBytes is used to get a pseudo-random 16-byte array based on the password and salt.

In Easy Save 3, AES.GenerateIV() is used to generate a random IV.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Locked