Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

How to unpack encrypted .unity3d? #220

Description

@asdqwe3124

Anyone know how to unpack encrypted .unity3d?
There is a "ENCRYPT_HEADER" string when I open the file with hex editor.

this is the function from Assembly-CSharp.dll

public static byte[] RemoveEncryptHeader(MemoryStream ms)
{
	byte[] result = null;
	if (ms != null)
	{
		BinaryReader binaryReader = new BinaryReader(ms);
		byte b = binaryReader.ReadByte();
		if (b == 2)
		{
			string text = binaryReader.ReadString();
			if (text == "ENCRYPT_HEADER")
			{
				result = binaryReader.ReadBytes(Convert.ToInt32(ms.get_Length() - ms.get_Position()));
			}
		}
	}
	return result;
}

Thanks

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions