Help me with code for RFID RC522

Hello guys, so I recently bought a new arduino module - RFID RC522 reader/writer.
My problem is that I want to read the info stored IN the tag, not the tag's UID.
Can you please provide me simple code for this?
I tried a few codes, their links are in the description of this YouTube video:

Why I need this? Well, for fun actually. I am living with a 2 more roommates and a few friends live in the apartment next to us. We with my roommates decide to do some pranks to them by entering their apartment at midnight, but their door can be unlocked only with tag. So I want to read the info from their tags and write it to one of ours so we can have a key :smiley:

Thank you.

Cloning a card is not something you can do with normal RFID cards. The information is encrypted and you need the encription key in order to read it.

So what am I supposed to do...?
Alright, another question- in the hotels, at the entrances of some houses, in hospitals etc. how do the readers function? Do they read the UID of the tag or the 1KB info?

JMD1:
So what am I supposed to do...?
Alright, another question- in the hotels, at the entrances of some houses, in hospitals etc. how do the readers function? Do they read the UID of the tag or the 1KB info?

Find a more realistic way to pull a prank.

A secure reader system has the key for decryption.

Do they read the UID of the tag or the 1KB info?

It depends on the system. Most of the access control systems I designed used the UID which was linked to a database to give access privileges. But some used data where the UID was part of the encryption key.

Thank you Grumpy_Mike!
Karma +1.

My understanding of these cards is that they're very much like barcodes.

The EAN style of code such as on a box sof chocolate, contains no information other than the product ID in a certain form, and all the other stuff (description, supplier, cost, price, roq etc) is in the database. Even if a human can read the code (and there's usually a human readable number there anyway), it's not useful info to the human. That probably accounts for most barcodes (most as in unique codes AND sheer volume of items of each code) world wide. That's like an RFID tag containing just a unuque number, and the (say) employee name, department, access rights etc are in the database.

BUT there are other barcode systems such as Code128 where the product description, say, IS in the code, which is useful where the system doing the reading isn't privy to a database and the content of the barcode is "free form" in the sense it can contain any info the designers want. Various stickers on a box may have various pieces of info, such as customer number, item serial number and so on.