Skip to content

Commit

Permalink
Fix encrypt web
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanlangston committed Jan 4, 2024
1 parent 2402941 commit 72c912c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Settings.zig
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ pub const Settings = struct {
try out.objectField("HighScore");
var highScoreEncryptedBuffer: [48]u8 = undefined;
var printBuffer: [32]u8 = undefined;
Shared.Crypto.Encrypt(Shared.Crypto.GetIV(), std.fmt.bufPrint(&printBuffer, "{d}", .{self.HighScore}) catch "0", &highScoreEncryptedBuffer);
_ = std.fmt.bufPrint(&printBuffer, "{d}", .{self.HighScore}) catch "0";
Shared.Crypto.Encrypt(Shared.Crypto.GetIV(), &printBuffer, &highScoreEncryptedBuffer);
try out.write(highScoreEncryptedBuffer);
}

Expand Down

0 comments on commit 72c912c

Please sign in to comment.