• rot47 os/2

    From Roon@21:4/148 to All on Thursday, April 13, 2023 17:18:22
    Hello All,

    anyone knows a gut rot47 encoder/decoder for os2?

    i have written a(n ugly) parser for the InterBBS Oneliners for my Maximus/2, gotta improve in the next few days and i tought i will write a parser for the lastcall datas as well.

    Regards,
    --
    dp

    telnet://bbs.roonsbbs.hu:1212 <<=-

    ... Uptime: 6d 9h 3m 25s
    --- GoldED/2 1.1.4.7+EMX
    * Origin: Roon's BBS - Budapest, HUNGARY (21:4/148)
  • From xqtr@21:1/111 to Roon on Friday, April 14, 2023 19:14:36
    anyone knows a gut rot47 encoder/decoder for os2?

    What language do you use? ROT47 is simple, you can get the python source from the script it self. It should be straight forward to "translate" to some other language. Below is the python code:

    def rot47(s):
    res = ''
    i = 0
    while i <= len(s) -1:
    j = ord(s[i])
    if (j>=33) and (j<=126):
    res += chr(33 + ((j + 14) % 94))
    else:
    res += s[i]
    i += 1
    return res

    And here is a site that has encoders/decoders for all programming languages: https://rot47.net/

    It will be nice, for other BBS software to "connect" to the interbbs last callers mod, cause right now, it's more of a inter-mystic-bbs last callers :)

    .
    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From Roon@21:4/148 to xqtr on Friday, April 14, 2023 21:36:18
    Hello xqtr,

    14 Apr 23 19:14, you wrote to me:

    anyone knows a gut rot47 encoder/decoder for os2?

    What language do you use? ROT47 is simple, you can get the python
    source from the script it self. It should be straight forward to "translate" to some other language. Below is the python code:

    yep i found the website, but thanks.
    i am using Maximus' internal MEX/MECCA language, in the middle of re-learning them. :)
    i'll try to implement this

    def rot47(s):
    res = ''
    i = 0
    while i <= len(s) -1:
    j = ord(s[i])
    if (j>> =33) and (j<=126):
    res += chr(33 + ((j + 14) % 94))
    else:
    res += s[i]
    i += 1
    return res

    And here is a site that has encoders/decoders for all programming languages: https://rot47.net/

    It will be nice, for other BBS software to "connect" to the interbbs
    last callers mod, cause right now, it's more of a inter-mystic-bbs
    last callers :)

    if i will have the time for it i will finish both scripts :)

    Regards,
    --
    dp

    telnet://bbs.roonsbbs.hu:1212 <<=-

    ... Uptime: 7d 13h 36m 46s
    --- GoldED/2 1.1.4.7+EMX
    * Origin: Roon's BBS - Budapest, HUNGARY (21:4/148)