• Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!

Barcoded Ticketing Standards - Freedom of Information

Status
Not open for further replies.

theenbyperor

Member
Joined
14 Nov 2019
Messages
16
Location
Saarbrücken, Deutschland
Hey all,

As I'm sure you're aware, the RDG like to keep the spec for their bacoded tickets rather secretive.
However, after a 15 month (ish) Freedom of Information Act fight, I've managed recently to settle a court case against the Department for Transport giving me the specs under the FoIA.
They're available here for your reading enjoyment: https://magicalcodewit.ch/rsp-specs/
 

Attachments

  • rsps-1024.pdf
    521.7 KB · Views: 167
  • rsps-3001.pdf
    810.9 KB · Views: 62
  • rsps-3030.pdf
    3.6 MB · Views: 56
  • rsps-3001-type-08.xlsx
    41.1 KB · Views: 28
  • rsps-3001-type-06.xlsx
    68.4 KB · Views: 22
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

blimmo

Member
Joined
30 Jul 2025
Messages
664
Location
West Mids
Hey all,

As I'm sure you're aware, the RDG like to keep the spec for their bacoded tickets rather secretive.
However, after a 15 month (ish) Freedom of Information Act fight, I've managed recently to settle a court case against the Department for Transport giving me the specs under the FoIA.
They're available here for your reading enjoyment: https://magicalcodewit.ch/rsp-specs/
Thanks! I might see if I can make anything cool, but I really just appreciate RDG having to publish something that should have been public from the beginning!
 

ainsworth74

Forum Staff
Staff Member
Global Moderator
Joined
16 Nov 2009
Messages
31,110
Location
Redcar
Hey all,

As I'm sure you're aware, the RDG like to keep the spec for their bacoded tickets rather secretive.
However, after a 15 month (ish) Freedom of Information Act fight, I've managed recently to settle a court case against the Department for Transport giving me the specs under the FoIA.
They're available here for your reading enjoyment: https://magicalcodewit.ch/rsp-specs/
Excellent work! And I thought my battle with the HSE to get the Gerrards Cross investigation information out of them was tough, they lost at the ICO stage so never had to touch the Tribunal system :lol:

I would be fascinated to see the Tribunal Decision notice if you're in a position to share it?

Edit: Ah did they cave in before the Tribunal got to reach a decision?
 

Edvid

Established Member
Joined
7 Feb 2008
Messages
2,523
For anyone wondering why this case went as far as the Tribunal stage, here's the ICO's decision notice:

The complainant has requested London North Eastern Railway (LNER) to disclose information relating to the Rail Settlement Plan ticket specifications and public keys. LNER refused to disclose the requested information citing section 31(1)(a) of FOIA (prevention of crime). The Commissioner’s decision is that LNER is entitled to withhold the requested information under section 31(1)(a) of FOIA. The Commissioner does not require further steps. Information Tribunal FT/EA/2025/0275 under appeal.
 
Last edited:

CarrotPie

On Moderation
Joined
18 Mar 2021
Messages
1,128
Location
‎
Hey all,

As I'm sure you're aware, the RDG like to keep the spec for their bacoded tickets rather secretive.
However, after a 15 month (ish) Freedom of Information Act fight, I've managed recently to settle a court case against the Department for Transport giving me the specs under the FoIA.
They're available here for your reading enjoyment: https://magicalcodewit.ch/rsp-specs/
Great news!

Does this mean a talk about the structure of UK train tickets at Chaos Communication Congress this year? :D
 

CarrotPie

On Moderation
Joined
18 Mar 2021
Messages
1,128
Location
‎
Public interest.

The way in which something is encrypted or encoded isn't particularly secretive, or it shouldn't be, as it should be the private keys which matter.
Perhaps they heard about someone's private keys going walkies in Germany and decided they didn't want to risk it in case they lost control of their private keys as well!
 

styles

Established Member
Joined
7 Dec 2014
Messages
4,917
Location
Gwynedd
Perhaps they heard about someone's private keys going walkies in Germany and decided they didn't want to risk it in case they lost control of their private keys as well!
If someone manages to access your private keys for an encryption system, they probably have gained access to the algorithm as well! :D
 

35B

Established Member
Joined
19 Dec 2011
Messages
5,493
Perhaps they heard about someone's private keys going walkies in Germany and decided they didn't want to risk it in case they lost control of their private keys as well!
They specifically cite a German example, and the criminal activity resulting from reverse engineering that led to the creation of "valid but fraudulent tickets."
 

sot

Member
Joined
17 Jul 2022
Messages
495
Location
SOT
Excellent work on this, I presume you are considering a dive into the UK system to see if there are any issues also?

It is worrying that the people who deal with these requests seem to not have any idea, and rather than making a concerted effort to delve deeper and find someone with a better understanding it is replied to with pure nonsense.

I did enjoy the conference, I believe Mr Jeeves passed on my regards.
 

redreni

Established Member
Joined
24 Sep 2010
Messages
2,713
Location
Slade Green
Great work!

How long did it take the ICO to arrive at its (incorrect) decision?

Am I right in thinking there's no way of going to the Tribunal until the ICO makes a decision, no matter how long the ICO sits on it (over 3 months without even allocating to a case officer in my case)?
 

theenbyperor

Member
Joined
14 Nov 2019
Messages
16
Location
Saarbrücken, Deutschland
It took them about half a year to come to their decision, then another just over half a year in the courts themselves on appeal. If the ICO don't do anything (i.e. provide a status report, allocate a case officer) for 3 months, you can apply to the tribunal to force them to move your case along.
 

horsewalrus

Member
Joined
24 Dec 2019
Messages
22
Location
York
Great work!

It looks like they didn't get around to releasing the public keys though - or have you chosen to not publish them? Will you be pushing back on this? (The internal review reply declining to "engage in a speculative technical debate regarding RSA cryptography" did make me laugh!)
 

blimmo

Member
Joined
30 Jul 2025
Messages
664
Location
West Mids
Unfortunately, it was decided that the keys are “held” by the RDG not the TOCs, and so aren’t even in scope of the FoIA.
What is possible without the public keys? Is it just the header information? I haven't looked at the spec in detail yet so apologies if this should be obvious, I'm worried that the best possible applications will be prevented without the public keys.
 

plugwash

Established Member
Joined
29 May 2015
Messages
1,995
My understanding is they went for a scheme where the "message" is passed to the RSA algorithm directrly and is not transmitted seperately. So without the public key you can't extract the ticket data.
 

saismee

Established Member
Joined
20 Oct 2023
Messages
1,741
Location
UK
I find this quite interesting
rsps-3030 1.1.7 said:
An eTicket may be freely duplicated to multiple customer devices, screenshotted, or printed multiple times. This is an accepted feature of eTicket which is desired by customers but makes visual inspection unsuitable. Therefore, eTicket fulfilment should be considered only for flows where barcode scanning is common practice and there is frequent communication across validation equipment.
I've heard a lot of staff say that screenshotted tickets "aren't accepted" or "aren't valid" and I have always questioned that. It looks like they are valid (and I can't see why they wouldn't be, unlike railcards).
 

AlterEgo

Verified Rep - Wingin' It! Paul Lucas
Joined
30 Dec 2008
Messages
29,521
Location
LBK
It's always been a myth that screenshots aren't valid so I'm pleased to see this come up as the hardest possible evidence that yes, of course they are valid.
 

theenbyperor

Member
Joined
14 Nov 2019
Messages
16
Location
Saarbrücken, Deutschland
Believe it or not, the TOCs’ ticketing system operators are awful at actually updating keys. I’m pretty sure the Avanti key is still used, in spite of being ostensibly expired.
 

styles

Established Member
Joined
7 Dec 2014
Messages
4,917
Location
Gwynedd
Believe it or not, the TOCs’ ticketing system operators are awful at actually updating keys. I’m pretty sure the Avanti key is still used, in spite of being ostensibly expired.
Ok yeah that would make 'sense', and is not surprising in the slightest.
 

AlterEgo

Verified Rep - Wingin' It! Paul Lucas
Joined
30 Dec 2008
Messages
29,521
Location
LBK
Believe it or not, the TOCs’ ticketing system operators are awful at actually updating keys. I’m pretty sure the Avanti key is still used, in spite of being ostensibly expired.
They are awful at most things, so this is entirely believable.
 

CarrotPie

On Moderation
Joined
18 Mar 2021
Messages
1,128
Location
‎
Believe it or not, the TOCs’ ticketing system operators are awful at actually updating keys. I’m pretty sure the Avanti key is still used, in spite of being ostensibly expired.
As you said in your D-ticket talk, it's the same in Germany as well...is there any country that actually updates their keys regularly?
 

theenbyperor

Member
Joined
14 Nov 2019
Messages
16
Location
Saarbrücken, Deutschland
is there any country that actually updates their keys regularly?
The International Union of Railways members (so those operating cross-border services) do actually stick to a hard 1-year limit on key length. Although the Dutch railways have recently (as in, two days ago) failed to copy Interrail's new key into their system, so Dutch fare gates broke for Interrail on the 1st.
 
Status
Not open for further replies.

Top