Example #1
0
    public void UserBuildingLevel_LevelUp(eBuildingKind _Kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        int currentLevel = AESSecurity.DecryptIntFromBytes_Aes(UserBuildingLevel[(int)_Kind], keyIV.Key, keyIV.IV);

        UserBuildingLevel[(int)_Kind] = AESSecurity.Encrypt_ToBytes_Aes <int>(currentLevel + 1, keyIV.Key, keyIV.IV);
    }
Example #2
0
    public int GetUserBuildingLevel(eBuildingKind _Kind)
    {
        //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV();

        return(AESSecurity.DecryptIntFromBytes_Aes(UserBuildingLevel[(int)_Kind], keyIV.Key, keyIV.IV));
    }
Example #3
0
    public int GetUserJam()
    {
        //AESKeyAndIV keyIv = SaveSystem.LoadAESKeyAndIV();

        return(AESSecurity.DecryptIntFromBytes_Aes(UserJam, keyIV.Key, keyIV.IV));
    }