You're best off looking over to projectpokemon, people there who 'specialize' in pokemon save encryption/decryption specifically. Though I'm not sure there's a way to encrypt your save after it's been decrypted so it's able to be used. Though I've not read a huge amount into it, so go nuts
