Difference between revisions of "Talk:Cryptography"

From GTAMods Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Revision ==
 
== Revision ==
 
[[User:Wesser|Wesser]] I'm sorry to see that you reversed my edit. Was there something wrong with it? I'm rather confused as I thought I was clarifying the meaning of JAMCRC. – [[User:Squ1dd13|Squ1dd13]] ([[User talk:Squ1dd13|talk]]) 11:48, 18 August 2020 (UTC)
 
[[User:Wesser|Wesser]] I'm sorry to see that you reversed my edit. Was there something wrong with it? I'm rather confused as I thought I was clarifying the meaning of JAMCRC. – [[User:Squ1dd13|Squ1dd13]] ([[User talk:Squ1dd13|talk]]) 11:48, 18 August 2020 (UTC)
 +
: I wish not to sound harsh, but your edit was simply redundant. – [[User:Wesser|Wesser]] ([[User talk:Wesser|talk]]) 17:05, 18 August 2020 (UTC)
 +
:: That's fair enough then. OK. – [[User:Squ1dd13|Squ1dd13]] ([[User talk:Squ1dd13|talk]]) 17:32, 18 August 2020 (UTC)
 +
:I actually find the removed addition useful. [[User:Seemann|Seemann]] ([[User talk:Seemann|talk]]) 05:14, 19 August 2020 (UTC)
 +
::Last information looked too obvious if you ask me, but unless you are ok with it, you are free to undo my edit. [[User:Wesser|Wesser]] ([[User talk:Wesser|talk]]) 12:40, 19 August 2020 (UTC)
 +
:::I can't undo as the article has been changed since then. Squ1dd13, if you wish, add your edit back, possibly with a reference to an existing algorithm, e.g.[https://llvm.org/doxygen/JamCRC_8cpp_source.html] [https://github.com/llvm/llvm-project/blob/1e1e3ba2526ecab1ad3c18c97abef36df00b3813/llvm/include/llvm/Support/CRC.h#L28] [[User:Seemann|Seemann]] ([[User talk:Seemann|talk]]) 04:09, 20 August 2020 (UTC)
  
 
== AES ==
 
== AES ==

Latest revision as of 04:14, 20 August 2020

Revision

Wesser I'm sorry to see that you reversed my edit. Was there something wrong with it? I'm rather confused as I thought I was clarifying the meaning of JAMCRC. – Squ1dd13 (talk) 11:48, 18 August 2020 (UTC)

I wish not to sound harsh, but your edit was simply redundant. – Wesser (talk) 17:05, 18 August 2020 (UTC)
That's fair enough then. OK. – Squ1dd13 (talk) 17:32, 18 August 2020 (UTC)
I actually find the removed addition useful. Seemann (talk) 05:14, 19 August 2020 (UTC)
Last information looked too obvious if you ask me, but unless you are ok with it, you are free to undo my edit. Wesser (talk) 12:40, 19 August 2020 (UTC)
I can't undo as the article has been changed since then. Squ1dd13, if you wish, add your edit back, possibly with a reference to an existing algorithm, e.g.[1] [2] Seemann (talk) 04:09, 20 August 2020 (UTC)

AES

Can someone provide an example of how to decrypt GTA IV AES Encryption through C++ (Key doesn't necessarily have to be included)?

Done. Do we really need to include implementation code for all the common hashes, though? --Steve-m 15:11, 15 February 2009 (UTC)
I think it's necessary for GTA's special CRC32 and One At A Time Hash (which I suppose isn't all that common). However I left SHA1 out because that is really common. Thanks for your decryption example, although do you have the library you used? --Sacky
No particular library, code is untested too. But there are tons of implementations that support those or similar functions, like OpenSSL, and usually every language/platform comes with its own library. Instead of decoding each block 16x you could as well decode all the data at once 16x (like aru does it), because of ECB that doesn't really matter (mathematically - although your CPU cache would be happier with the first method :p). --Steve-m 16:12, 16 February 2009 (UTC)

Please, can you post some code how to use AES Encryption in Delphi?

Sure. I used a stripped down version of AesLib.pas, I forgot where I got it from. Actual AES code is implemented in C and included via pre-compiled object files. --Steve-m 13:55, 17 February 2009 (UTC)