Skip to content

Instantly share code, notes, and snippets.

@lambdan
Created April 20, 2026 19:22
Show Gist options
  • Select an option

  • Save lambdan/1ed47dd5656399b357f7aa4515db109f to your computer and use it in GitHub Desktop.

Select an option

Save lambdan/1ed47dd5656399b357f7aa4515db109f to your computer and use it in GitHub Desktop.
ps3decrs in Docker
# ps3decrs 2.0.1 (https://github.com/Redrrx/ps3dec/releases/tag/2.0.1) as a Docker container.
# Works on any OS.
#
# Instructions
#
# 1. Download this Dockerfile and put it in a folder
# 2. Build the image: `docker build -t ps3decrs .`
# 3. In a folder, lets call it X, create a folder called "keys" and put your dkeys in there
# 4. In the X folder, put your encrypted ISO's, with same filename as your dkey (minus the .dkey part)
# 5. Your X folder should now look like this:
# keys/
# game.dkey
# game.iso
# 6. Inside this X folder, run `docker run --rm -it -v .:/app ps3decrs:latest "game.iso"`
# 7. Enjoy your decrypt iso after a while!
FROM rust:1.95-slim-bullseye AS builder
ARG PS3DEC_URL="https://github.com/Redrrx/ps3dec/archive/refs/tags/2.0.1.tar.gz"
RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl
WORKDIR /build
RUN curl -L -o ps3dec.tar.gz $PS3DEC_URL
RUN mkdir -p /build/ps3dec && \
tar -xzf ps3dec.tar.gz --strip-components=1 -C /build/ps3dec
WORKDIR /build/ps3dec
RUN cargo build --release
RUN chmod +x target/release/ps3decrs
FROM debian:bullseye-slim
COPY --from=builder /build/ps3dec/target/release/ps3decrs /usr/local/bin/ps3decrs
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/ps3decrs"]
@lambdan

lambdan commented Apr 20, 2026

Copy link
Copy Markdown
Author

ps3decrs 2.0.1 (https://github.com/Redrrx/ps3dec/releases/tag/2.0.1) as a Docker container.
Works on any OS.

Instructions

  1. Download this Dockerfile and put it in a folder
  2. Build the image: docker build -t ps3decrs .
  3. In a folder, lets call it X, create a folder called "keys" and put your dkeys in there
  4. In the X folder, put your encrypted ISO's, with same filename as your dkey (minus the .dkey part)
  5. Your X folder should now look like this:
keys/
  game name.dkey
game name.iso
  1. Inside this X folder, run docker run --rm -it -v .:/app ps3decrs:latest --auto "game name.iso"
  2. Enjoy your decrypt iso after a while!

@lambdan

lambdan commented Apr 20, 2026

Copy link
Copy Markdown
Author

For convenience (just save this as script.sh or whatever and run it as script.sh "game name.iso")

#!/bin/sh
set -e

echo_line() {
  echo "----------------------------------------"
  echo "$1"
  echo "----------------------------------------"
}

if [ -z "$1" ]; then
  echo "Usage: $0 <path_to_ps3_iso>"
  exit 1
fi

echo_line "Target: $1"

# check keys folder exists and has any dkeys in it
if [ ! -d "keys" ]; then
  echo "Error: no keys folder! Create one and put your dkeys in it."
  exit 1
fi

# download Dockerfile if not exists
if [ ! -f "Dockerfile" ]; then
  echo_line "Downloading Dockerfile..."
  curl -o Dockerfile "https://gist.githubusercontent.com/lambdan/1ed47dd5656399b357f7aa4515db109f/raw/0f12921794cc7f99bf2ac4eba814ea36cf2fa197/Dockerfile"
fi

echo_line "Building..."
docker build -t ps3decrs .

echo_line "Running..."
docker run --name ps3decrs --rm -it -v $(pwd):/app ps3decrs --auto "$1"

echo_line "Done!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment