#6 Decrypting using disc key doesn't work

已关闭
gmipf3 年之前创建 · 11 条评论
gmipf 评论于 3 年之前

I have a game with no ird file available. I want to decrypt using the disc key from redump.org: http://redump.org/disc/73140/

If I specifiy the key 1765DE29550A582480840FA739DAE198 with -d it will start to process using 6ad07b5bef8324956b4f68cadc60542f.

There is some conversion going on.

How can I specify the raw disc key without conversion?

I have a game with no ird file available. I want to decrypt using the disc key from redump.org: http://redump.org/disc/73140/ If I specifiy the key 1765DE29550A582480840FA739DAE198 with -d it will start to process using 6ad07b5bef8324956b4f68cadc60542f. There is some conversion going on. How can I specify the raw disc key without conversion?
gmipf 评论于 3 年之前
发布者

Ok solved the problem: I have changed line 120 of iso.py from:

self.disc_key = cipher.encrypt(core.to_bytes(args.decryption_key))

to:

self.disc_key = core.to_bytes(args.decryption_key)

I think there is some sort of decryption of the disc key going on in your original code?

The decryption is now working for me. Could you add this feature and the ability to re-encrypt the iso with the raw disc key?

EDIT: And also please add re-encryption with ird files.

Ok solved the problem: I have changed line 120 of iso.py from: self.disc_key = cipher.encrypt(core.to_bytes(args.decryption_key)) to: self.disc_key = core.to_bytes(args.decryption_key) I think there is some sort of decryption of the disc key going on in your original code? The decryption is now working for me. Could you add this feature and the ability to re-encrypt the iso with the raw disc key? EDIT: And also please add re-encryption with ird files.
Nichlas Severinsen 评论于 3 年之前
所有者

Interesting, I'm guessing the keys I have are different for some reason? I have a bunch of .dkeys (assumingly, decrypted keys) that need to be encrypted when they are used. I'd be willing to add another argument for raw keys, but I also think that would be a little user unfriendly. Ideally libray should figure out what kind of key it got, but that might be difficult..

That link you posted isn't working (at least not for me), and I can't find that key in my archive, do you have the ID (for example, BCAS20001) for that game?

Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?

Interesting, I'm guessing the keys I have are different for some reason? I have a bunch of .dkeys (assumingly, decrypted keys) that need to be encrypted when they are used. I'd be willing to add another argument for raw keys, but I also think that would be a little user unfriendly. Ideally libray should figure out what kind of key it got, but that might be difficult.. That link you posted isn't working (at least not for me), and I can't find that key in my archive, do you have the ID (for example, BCAS20001) for that game? Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?
gmipf 评论于 3 年之前
发布者

The PS3 section of the redump database is closed, only for registered users with dumper status. You need to dump at least one game to be approved as a dumper there by the staff. But I can give you a copy of the zip file with all current keys.

I have added the raw keys and as dkey txt files.

EDIT: Can't add zip files here, I will add an external link.

The PS3 section of the redump database is closed, only for registered users with dumper status. You need to dump at least one game to be approved as a dumper there by the staff. But I can give you a copy of the zip file with all current keys. I have added the raw keys and as dkey txt files. EDIT: Can't add zip files here, I will add an external link.
gmipf 评论于 3 年之前
发布者

Search for "Sony PlayStation 3 Disc Keys (3383) (2021-05-31 14-18-43) redump" at archive.org.

Search for "Sony PlayStation 3 Disc Keys (3383) (2021-05-31 14-18-43) redump" at archive.org.
gmipf 评论于 3 年之前
发布者

"Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?"

I would like to re-encrypt an iso file from time to time to validate its integrity with the redump database. The hashes are only stored with encrypted untouched isos.

"Re-encryption is rather difficult at the moment as packing/unpacking to/from ISOs has not been implemented. What do you need it for?" I would like to re-encrypt an iso file from time to time to validate its integrity with the redump database. The hashes are only stored with encrypted untouched isos.
Nichlas Severinsen 评论于 3 年之前
所有者

Thx, I'll look into adding the keys.

I would like to re-encrypt an iso file from time to time

Ah, okay so you don't need to repack the folder into an iso, just re-encrypt the decrypted iso? That I can implement.

Thx, I'll look into adding the keys. > I would like to re-encrypt an iso file from time to time Ah, okay so you don't need to repack the folder into an iso, just re-encrypt the decrypted iso? That I can implement.
gmipf 评论于 3 年之前
发布者

Yes, I only need iso to iso operations. Repacking the folder to an image or image to folder would complicate thing regarding validating through md5 etc. This is the reason why I like your tool, the other tool only unpacks the disc/iso to folders.

Yes, I only need iso to iso operations. Repacking the folder to an image or image to folder would complicate thing regarding validating through md5 etc. This is the reason why I like your tool, the other tool only unpacks the disc/iso to folders.
Nichlas Severinsen 在代码提交 3 年之前 中引用了该工单
Nichlas Severinsen 评论于 3 年之前
所有者

Added -r / --re-encrypt so you can re-encrypt the iso's, currently unreleased. Will still require a -d or .ird until I add the keys.

Added `-r` / `--re-encrypt` so you can re-encrypt the iso's, currently unreleased. Will still require a -d or .ird until I add the keys.
gmipf 评论于 3 年之前
发布者

Oh ok, it was also actually a bug and the key was encrypted before usage? I will try the new feature, can I get the new version trough pip or do I have to install it manually?

EDIT: Oh, ok it is unreleased, then I install manually. Thanks!

Oh ok, it was also actually a bug and the key was encrypted before usage? I will try the new feature, can I get the new version trough pip or do I have to install it manually? EDIT: Oh, ok it is unreleased, then I install manually. Thanks!
Nichlas Severinsen 评论于 3 年之前
所有者

Yeah, turns out it was a bug, past me hadn't actually tested extracting and running the iso.

Currently unreleased so you'll have to install manually, I'll release when I add the keys. Then it's either pip, AUR, or manually.

Thanks for reporting and for the new keys! :)

Yeah, turns out it was a bug, past me hadn't actually tested extracting and running the iso. Currently unreleased so you'll have to install manually, I'll release when I add the keys. Then it's either pip, AUR, or manually. Thanks for reporting and for the new keys! :)
gmipf 评论于 3 年之前
发布者

re-encryption is working great, I have encrypted an decrypted iso again and the md5 hash matches with redump database. Thank you very much.

re-encryption is working great, I have encrypted an decrypted iso again and the md5 hash matches with redump database. Thank you very much.
登录 并参与到对话中。
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。