Clock (transliterate) Cipher
Introduction:
I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard) and transformed them into challenges. Most of them are still in the sandbox, and I'm not sure yet whether I'll post all of them, or only a few. Here is the third and easiest one (after the Computer Cipher and Trifid Cipher I posted earlier).
With a Clock Cipher we use the following image to encipher text:
So a sentence like this is a clock cipher
would become:
t h i s i s a c l o c k c i p h e r (without additional spaces of course, but added as clarification)
19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17
Challenge:
Given a string sentence_to_encipher
, encipher it as described above.
Challenge rules:
- You can assume the
sentence_to_encipher
will only contain letters and spaces. - You can use either full lowercase or full uppercase (please state which one you've used in your answer).
- You are not allowed to add leading zeros for the single-digit enciphered letters
b
throughj
, but two zeros00
are mandatory for spaces. - You should use
:
as separator, and an additional leading or trailing:
is not allowed. - You are allowed to use lowercase
am
andpm
instead of uppercaseAM
andPM
, as long as it's consistent.
General rules:
- This is code-golf, so shortest answer in bytes wins.
Don't let code-golf languages discourage you from posting answers with non-codegolfing languages. Try to come up with an as short as possible answer for 'any' programming language.
Standard rules apply for your answer with default I/O rules, so you are allowed to use STDIN/STDOUT, functions/method with the proper parameters and return-type, full programs. Your call.
Default Loopholes are forbidden.- If possible, please add a link with a test for your code (i.e. TIO).
- Also, adding an explanation for your answer is highly recommended.
Test cases:
Input: "this is a clock cipher"
Output: "19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17"
Input: "test"
Output: "19:4:18:19"
Input: "what time is it"
Output: "22:7:AM:19:00:19:8:12:4:00:8:18:00:8:19"
Input: "acegikmoqsuwy bdfhjlnprtvxz"
Output: "AM:2:4:6:8:10:12:14:16:18:20:22:24:00:1:3:5:7:9:11:13:15:17:19:21:23:PM"
Input: "easy peazy"
Output: "4:AM:18:24:00:15:4:AM:PM:24"
code-golf string cipher encoding
add a comment |
Introduction:
I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard) and transformed them into challenges. Most of them are still in the sandbox, and I'm not sure yet whether I'll post all of them, or only a few. Here is the third and easiest one (after the Computer Cipher and Trifid Cipher I posted earlier).
With a Clock Cipher we use the following image to encipher text:
So a sentence like this is a clock cipher
would become:
t h i s i s a c l o c k c i p h e r (without additional spaces of course, but added as clarification)
19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17
Challenge:
Given a string sentence_to_encipher
, encipher it as described above.
Challenge rules:
- You can assume the
sentence_to_encipher
will only contain letters and spaces. - You can use either full lowercase or full uppercase (please state which one you've used in your answer).
- You are not allowed to add leading zeros for the single-digit enciphered letters
b
throughj
, but two zeros00
are mandatory for spaces. - You should use
:
as separator, and an additional leading or trailing:
is not allowed. - You are allowed to use lowercase
am
andpm
instead of uppercaseAM
andPM
, as long as it's consistent.
General rules:
- This is code-golf, so shortest answer in bytes wins.
Don't let code-golf languages discourage you from posting answers with non-codegolfing languages. Try to come up with an as short as possible answer for 'any' programming language.
Standard rules apply for your answer with default I/O rules, so you are allowed to use STDIN/STDOUT, functions/method with the proper parameters and return-type, full programs. Your call.
Default Loopholes are forbidden.- If possible, please add a link with a test for your code (i.e. TIO).
- Also, adding an explanation for your answer is highly recommended.
Test cases:
Input: "this is a clock cipher"
Output: "19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17"
Input: "test"
Output: "19:4:18:19"
Input: "what time is it"
Output: "22:7:AM:19:00:19:8:12:4:00:8:18:00:8:19"
Input: "acegikmoqsuwy bdfhjlnprtvxz"
Output: "AM:2:4:6:8:10:12:14:16:18:20:22:24:00:1:3:5:7:9:11:13:15:17:19:21:23:PM"
Input: "easy peazy"
Output: "4:AM:18:24:00:15:4:AM:PM:24"
code-golf string cipher encoding
Related
– Kevin Cruijssen
2 hours ago
Is it allowed to output[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
forhi bob
, or must one join the result? By the way, neat cipher!
– Mr. Xcoder
41 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).
– Kevin Cruijssen
35 mins ago
add a comment |
Introduction:
I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard) and transformed them into challenges. Most of them are still in the sandbox, and I'm not sure yet whether I'll post all of them, or only a few. Here is the third and easiest one (after the Computer Cipher and Trifid Cipher I posted earlier).
With a Clock Cipher we use the following image to encipher text:
So a sentence like this is a clock cipher
would become:
t h i s i s a c l o c k c i p h e r (without additional spaces of course, but added as clarification)
19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17
Challenge:
Given a string sentence_to_encipher
, encipher it as described above.
Challenge rules:
- You can assume the
sentence_to_encipher
will only contain letters and spaces. - You can use either full lowercase or full uppercase (please state which one you've used in your answer).
- You are not allowed to add leading zeros for the single-digit enciphered letters
b
throughj
, but two zeros00
are mandatory for spaces. - You should use
:
as separator, and an additional leading or trailing:
is not allowed. - You are allowed to use lowercase
am
andpm
instead of uppercaseAM
andPM
, as long as it's consistent.
General rules:
- This is code-golf, so shortest answer in bytes wins.
Don't let code-golf languages discourage you from posting answers with non-codegolfing languages. Try to come up with an as short as possible answer for 'any' programming language.
Standard rules apply for your answer with default I/O rules, so you are allowed to use STDIN/STDOUT, functions/method with the proper parameters and return-type, full programs. Your call.
Default Loopholes are forbidden.- If possible, please add a link with a test for your code (i.e. TIO).
- Also, adding an explanation for your answer is highly recommended.
Test cases:
Input: "this is a clock cipher"
Output: "19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17"
Input: "test"
Output: "19:4:18:19"
Input: "what time is it"
Output: "22:7:AM:19:00:19:8:12:4:00:8:18:00:8:19"
Input: "acegikmoqsuwy bdfhjlnprtvxz"
Output: "AM:2:4:6:8:10:12:14:16:18:20:22:24:00:1:3:5:7:9:11:13:15:17:19:21:23:PM"
Input: "easy peazy"
Output: "4:AM:18:24:00:15:4:AM:PM:24"
code-golf string cipher encoding
Introduction:
I have loads of different ciphers stored in a document I once compiled as a kid, I picked a few of the ones I thought were best suitable for challenges (not too trivial, and not too hard) and transformed them into challenges. Most of them are still in the sandbox, and I'm not sure yet whether I'll post all of them, or only a few. Here is the third and easiest one (after the Computer Cipher and Trifid Cipher I posted earlier).
With a Clock Cipher we use the following image to encipher text:
So a sentence like this is a clock cipher
would become:
t h i s i s a c l o c k c i p h e r (without additional spaces of course, but added as clarification)
19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17
Challenge:
Given a string sentence_to_encipher
, encipher it as described above.
Challenge rules:
- You can assume the
sentence_to_encipher
will only contain letters and spaces. - You can use either full lowercase or full uppercase (please state which one you've used in your answer).
- You are not allowed to add leading zeros for the single-digit enciphered letters
b
throughj
, but two zeros00
are mandatory for spaces. - You should use
:
as separator, and an additional leading or trailing:
is not allowed. - You are allowed to use lowercase
am
andpm
instead of uppercaseAM
andPM
, as long as it's consistent.
General rules:
- This is code-golf, so shortest answer in bytes wins.
Don't let code-golf languages discourage you from posting answers with non-codegolfing languages. Try to come up with an as short as possible answer for 'any' programming language.
Standard rules apply for your answer with default I/O rules, so you are allowed to use STDIN/STDOUT, functions/method with the proper parameters and return-type, full programs. Your call.
Default Loopholes are forbidden.- If possible, please add a link with a test for your code (i.e. TIO).
- Also, adding an explanation for your answer is highly recommended.
Test cases:
Input: "this is a clock cipher"
Output: "19:7:8:18:00:8:18:00:AM:00:2:11:14:2:10:00:2:8:15:7:4:17"
Input: "test"
Output: "19:4:18:19"
Input: "what time is it"
Output: "22:7:AM:19:00:19:8:12:4:00:8:18:00:8:19"
Input: "acegikmoqsuwy bdfhjlnprtvxz"
Output: "AM:2:4:6:8:10:12:14:16:18:20:22:24:00:1:3:5:7:9:11:13:15:17:19:21:23:PM"
Input: "easy peazy"
Output: "4:AM:18:24:00:15:4:AM:PM:24"
code-golf string cipher encoding
code-golf string cipher encoding
edited 2 hours ago
asked 2 hours ago
Kevin Cruijssen
35.7k554187
35.7k554187
Related
– Kevin Cruijssen
2 hours ago
Is it allowed to output[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
forhi bob
, or must one join the result? By the way, neat cipher!
– Mr. Xcoder
41 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).
– Kevin Cruijssen
35 mins ago
add a comment |
Related
– Kevin Cruijssen
2 hours ago
Is it allowed to output[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
forhi bob
, or must one join the result? By the way, neat cipher!
– Mr. Xcoder
41 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).
– Kevin Cruijssen
35 mins ago
Related
– Kevin Cruijssen
2 hours ago
Related
– Kevin Cruijssen
2 hours ago
Is it allowed to output
[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
for hi bob
, or must one join the result? By the way, neat cipher!– Mr. Xcoder
41 mins ago
Is it allowed to output
[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
for hi bob
, or must one join the result? By the way, neat cipher!– Mr. Xcoder
41 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like
['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).– Kevin Cruijssen
35 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like
['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).– Kevin Cruijssen
35 mins ago
add a comment |
4 Answers
4
active
oldest
votes
Python 2, 74 72 bytes
lambda s:':'.join(['AM','PM','00',`ord(c)-97`]['az '.find(c)]for c in s)
Try it online!
Takes input as all lowercase
add a comment |
05AB1E, 22 bytes
„AM24L„PM00)˜':«Að«s‡¨
Try it online!
or as a Test Suite
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember thatª
had changed :)
– Emigna
19 mins ago
add a comment |
Perl 6, 47 bytes
*.ords>>.&{<<00 AM{1..24}PM>>[$_%32]}.join(":")
Try it online!
Anonymous Whatever lambda that takes a string of either case and returns the encrypted string.
add a comment |
Red, 124 121 110 bytes
func[s][replace/all form collect[foreach c s[keep
case[c =#"a"['AM]c =#"z"['PM]c = sp["00"]c[-97 + c]]]]sp":"]
Try it online!
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "200"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f178356%2fclock-transliterate-cipher%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Python 2, 74 72 bytes
lambda s:':'.join(['AM','PM','00',`ord(c)-97`]['az '.find(c)]for c in s)
Try it online!
Takes input as all lowercase
add a comment |
Python 2, 74 72 bytes
lambda s:':'.join(['AM','PM','00',`ord(c)-97`]['az '.find(c)]for c in s)
Try it online!
Takes input as all lowercase
add a comment |
Python 2, 74 72 bytes
lambda s:':'.join(['AM','PM','00',`ord(c)-97`]['az '.find(c)]for c in s)
Try it online!
Takes input as all lowercase
Python 2, 74 72 bytes
lambda s:':'.join(['AM','PM','00',`ord(c)-97`]['az '.find(c)]for c in s)
Try it online!
Takes input as all lowercase
answered 2 hours ago
TFeld
14.3k21240
14.3k21240
add a comment |
add a comment |
05AB1E, 22 bytes
„AM24L„PM00)˜':«Að«s‡¨
Try it online!
or as a Test Suite
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember thatª
had changed :)
– Emigna
19 mins ago
add a comment |
05AB1E, 22 bytes
„AM24L„PM00)˜':«Að«s‡¨
Try it online!
or as a Test Suite
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember thatª
had changed :)
– Emigna
19 mins ago
add a comment |
05AB1E, 22 bytes
„AM24L„PM00)˜':«Að«s‡¨
Try it online!
or as a Test Suite
05AB1E, 22 bytes
„AM24L„PM00)˜':«Að«s‡¨
Try it online!
or as a Test Suite
answered 1 hour ago
Emigna
45.4k432138
45.4k432138
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember thatª
had changed :)
– Emigna
19 mins ago
add a comment |
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember thatª
had changed :)
– Emigna
19 mins ago
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
Nice answer, I managed to get 23 bytes through multiple approaches (one of which was my currently deleted answer). That's a neat way to arrange your stack to save a byte!
– Mr. Xcoder
27 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
An alternate 22 byter combining our answers: Try it Online!
– Mr. Xcoder
24 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember that
ª
had changed :)– Emigna
19 mins ago
@Mr.Xcoder: My first idea actually looked like that, but 2 bytes worse because I didn't remember that
ª
had changed :)– Emigna
19 mins ago
add a comment |
Perl 6, 47 bytes
*.ords>>.&{<<00 AM{1..24}PM>>[$_%32]}.join(":")
Try it online!
Anonymous Whatever lambda that takes a string of either case and returns the encrypted string.
add a comment |
Perl 6, 47 bytes
*.ords>>.&{<<00 AM{1..24}PM>>[$_%32]}.join(":")
Try it online!
Anonymous Whatever lambda that takes a string of either case and returns the encrypted string.
add a comment |
Perl 6, 47 bytes
*.ords>>.&{<<00 AM{1..24}PM>>[$_%32]}.join(":")
Try it online!
Anonymous Whatever lambda that takes a string of either case and returns the encrypted string.
Perl 6, 47 bytes
*.ords>>.&{<<00 AM{1..24}PM>>[$_%32]}.join(":")
Try it online!
Anonymous Whatever lambda that takes a string of either case and returns the encrypted string.
answered 1 hour ago
Jo King
20.9k248110
20.9k248110
add a comment |
add a comment |
Red, 124 121 110 bytes
func[s][replace/all form collect[foreach c s[keep
case[c =#"a"['AM]c =#"z"['PM]c = sp["00"]c[-97 + c]]]]sp":"]
Try it online!
add a comment |
Red, 124 121 110 bytes
func[s][replace/all form collect[foreach c s[keep
case[c =#"a"['AM]c =#"z"['PM]c = sp["00"]c[-97 + c]]]]sp":"]
Try it online!
add a comment |
Red, 124 121 110 bytes
func[s][replace/all form collect[foreach c s[keep
case[c =#"a"['AM]c =#"z"['PM]c = sp["00"]c[-97 + c]]]]sp":"]
Try it online!
Red, 124 121 110 bytes
func[s][replace/all form collect[foreach c s[keep
case[c =#"a"['AM]c =#"z"['PM]c = sp["00"]c[-97 + c]]]]sp":"]
Try it online!
edited 30 mins ago
answered 38 mins ago
Galen Ivanov
6,36711032
6,36711032
add a comment |
add a comment |
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f178356%2fclock-transliterate-cipher%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Related
– Kevin Cruijssen
2 hours ago
Is it allowed to output
[7, ":", 8, ":", "00", ":", 1, ":", 14, ":", 1]
forhi bob
, or must one join the result? By the way, neat cipher!– Mr. Xcoder
41 mins ago
@Mr.Xcoder Sorry, for the sake of the cipher theme I'd say it should be joined to a single string (or the entire thing as a list of characters like
['7', ':', '8', ':', '0', '0', ':', '1', ':', '1', '4', ':', '1']
).– Kevin Cruijssen
35 mins ago