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); }
public int GetUserBuildingLevel(eBuildingKind _Kind) { //AESKeyAndIV keyIV = SaveSystem.LoadAESKeyAndIV(); return(AESSecurity.DecryptIntFromBytes_Aes(UserBuildingLevel[(int)_Kind], keyIV.Key, keyIV.IV)); }
public int GetUserJam() { //AESKeyAndIV keyIv = SaveSystem.LoadAESKeyAndIV(); return(AESSecurity.DecryptIntFromBytes_Aes(UserJam, keyIV.Key, keyIV.IV)); }