Code Monkey home page Code Monkey logo

apple-vas's People

Contributors

kormax avatar ndorigatti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apple-vas's Issues

[HELP] Decrypt payload need data

Hello,
i'm trying to follow this very useful guide to read and decrypt data from NFC Test Passes.

I'll generate my keys and have my passes in future, but for now I can only work on this public passes.

I have the private and public compressed keys, and i'm at the point of decrypting the payload but from the python example, some items are not clear to me:

`
PUBLIC_KEY_ASN_HEADER = bytearray.fromhex(
"3039301306072a8648ce3d020106082a8648ce3d030107032200"
)

def generate_shared_info(pass_identifier: str):
"""
:param pass_identifier: pass identifier
:return: shared info used in X963 KDF when decrypting pass data
"""
return bytes([
*"ASN 1 RELATIVE-OID".encode("ascii"),
*"REDACTED REDACTED REDACTED".encode("ascii"),
*hashlib.sha256(pass_identifier.encode("ascii")).digest()
])
`

  1. I'm wondering if PUBLIC_KEY_ASN_HEADER is always the same (or where i can find it, maybe from apple when i have my keys?)
  2. What is "ASN 1 RELATIVE-OID" and/or where i can find it?
  3. What do you mean for "REDACTED REDACTED REDACTED"

I'm quite comfortable with the rest of the code, i'm developing in java but it's quite easy, but I can't figure these three elements.

Can you please help me?
Even in private, any help would be welcome!

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.