Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

ROT13 Text cipher

Hello all, today I made a simple string cipher. The alphabet is basically just shifted over.

Hope you all enjoy!

Here is a some cipher text, can anyone figure it out?
ybg4eer3B6dr3f4783lhf8mabg 3ik46mb64e

[Image: 03c6908041c5875566e288ee3b9d31ab.png]



UPDATE: :length inline for speed, also added a shift value to shift the alphaNum that many characters.
Ah, brings me back to the days of not being able to fully utilize arrays. Back when I was fascinated with the Caesar cipher and obsessed with attempting to make a random char placement cipher with functional keys.

Great... release? It's a Caesar cipher but is certainly much more complicated than what I remember making lol. Where is SoulByte/AMDjack when we need him?
[Image: chain.png]
(May 23, 2017 10:57 AM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  Hello all, today I made a simple string cipher. The alphabet is basically just shifted over.

Hope you all enjoy!

[Image: d9aaf74adf72c4a15a60984e14f52979.png]

Code
@echo off & setlocal enableDelayedExpansion

set /p "text=Text:   "

call :cipher text out

echo Cipher: %out%

pause & exit


:cipher
    setlocal
        if not defined alphaNum set "alphaNum="a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z" "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z" "0" "1" "2" "3" "4" "5" "6" "7" "8" "9" " ""
        if not defined backward set "backward=" " "z" "y" "x" "w" "v" "u" "t" "s" "r" "p" "q" "o" "n" "m" "l" "k" "j" "i" "h" "g" "f" "e" "d" "c" "b" "a" "Z" "Y" "X" "W" "V" "U" "T" "S" "R" "Q" "P" "O" "N" "M" "L" "K" "J" "I" "H" "G" "F" "E" "D" "C" "B" "A" "9" "8" "7" "6" "5" "4" "3" "2" "1" "0""

        call :length "!%~1!" len
    
        for /l %%a in (0,1,%len%) do set "c="!%~1:~%%a,1!" " & set "spaced=!spaced!!c!"
        
        for %%a in (!spaced!) do (
            set /a "n=0", "m=0"
            for %%b in (!alphaNum!) do (
                set /a "n+=1"
                if "%%~b" equ "%%~a" for %%c in (%backward%) do (
                    set /a "m+=1"
                    if !n! equ !m! set "out=!out!%%~c"
        )))
    (endlocal
        if "%~2" neq "" ( set "%~2=%out%") else echo %out%
    )
goto :eof

:length
    setlocal
        set "str=X%~1"
        set length=0
        for /L %%a in (8,-1,0) do (
            set /a "length|=1<<%%a"
            for %%b in (!length!) do if "!str:~%%b,1!" equ "" set /a "length&=~1<<%%a"
        )
    (endlocal
        if "%~2" neq "" ( set "%2=%length%" ) else echo %length%
    )
goto :eof

Hey you know i made something like this just a little different method 😝
(May 23, 2017 04:22 PM)Sajuuk Wrote:  Ah, brings me back to the days of not being able to fully utilize arrays. Back when I was fascinated with the Caesar cipher and obsessed with attempting to make a random char placement cipher with functional keys.

Great... release? It's a Caesar cipher but is certainly much more complicated than what I remember making lol. Where is SoulByte/AMDjack when we need him?

They've both been gone for a long time.. everyone basically left lol it'd be a better place if they were all still here. Sajuuk, you know the many names I'm referring too, right?
(May 24, 2017 11:37 AM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  They've both been gone for a long time.. everyone basically left lol it'd be a better place if they were all still here. Sajuuk, you know the many names I'm referring too, right?

Let me try to recall:

GL1TCH3D (helped my dumb ass back in 2011)
gulfstream (a.k.a. White Light; also helped my dumb ass back in 2011)
DatsiK (also helped, but in more of a troll-y way)
iGnite (talked with him a year ago)
Lino126 ( https://hackforums.net/showthread.php?ti...id54736596 )
annikk.exe (still around I think?)
SoulByte/AMDjack (nigga got his account closed after trying to donate)
Aces (somewhat active in the C++ section nowadays)
Infinity (also somewhat active in the C++ section but I think he got closed recently)
xadamxk (this nigga started out around the same time I did in this exact same fucking section and look at him now lol...)
kingremzy (you)
L33T CR4XX0R (likely was my username in 2013. I don't recall)

I could probably list more but I'd have to think back a bit more recently. Yes, odd how I remember most of if not everyone who was here back in 2011 and 2012 yet not a single soul past that point. Basically, that's when I switched to C++. And the people that help there now are all the same ones that helped me back then.
[Image: chain.png]
(May 24, 2017 01:53 PM)Sajuuk Wrote:  Let me try to recall:

GL1TCH3D (helped my dumb ass back in 2011)
gulfstream (a.k.a. White Light; also helped my dumb ass back in 2011)
DatsiK (also helped, but in more of a troll-y way)
iGnite (talked with him a year ago)
Lino126 ( https://hackforums.net/showthread.php?ti...id54736596 )
annikk.exe (still around I think?)
SoulByte/AMDjack (nigga got his account closed after trying to donate)
Aces (somewhat active in the C++ section nowadays)
Infinity (also somewhat active in the C++ section but I think he got closed recently)
xadamxk (this nigga started out around the same time I did in this exact same fucking section and look at him now lol...)
kingremzy (you)
L33T CR4XX0R (likely was my username in 2013. I don't recall)

I could probably list more but I'd have to think back a bit more recently. Yes, odd how I remember most of if not everyone who was here back in 2011 and 2012 yet not a single soul past that point. Basically, that's when I switched to C++. And the people that help there now are all the same ones that helped me back then.

Yes! And this is when there were more outstanding releases.
(May 24, 2017 01:56 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  Yes! And this is when there were more outstanding releases.

Most of the major stuff was done back then, yes. But I really hope you're not throwing in the "we've run out of things to make" towel...
[Image: chain.png]
(May 24, 2017 02:04 PM)Sajuuk Wrote:  Most of the major stuff was done back then, yes. But I really hope you're not throwing in the "we've run out of things to make" towel...

No, more like "we've ran out of HQ and people who actually care about learning the language, so even if you DO post something cool, no one cares" towel
(May 24, 2017 02:05 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  No, more like "we've ran out of HQ and people who actually care about learning the language, so even if you DO post something cool, no one cares" towel

Still the same principle though. 🤣
[Image: chain.png]
(May 24, 2017 02:06 PM)Sajuuk Wrote:  Still the same principle though. 🤣

Trust me, I have a lot of neat things I've been working on. I just rarely release anymore because the project is either too large, or people just don't care lol
(May 24, 2017 02:05 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  No, more like "we've ran out of HQ and people who actually care about learning the language, so even if you DO post something cool, no one cares" towel

I believe this towel is well used
There's no place like ~/
I'm actually surprised this cipher didn't get more attention, considering this is one of my more "practical" releases.
(Jun 6, 2017 08:08 AM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  I'm actually surprised this cipher didn't get more attention, considering this is one of my more "practical" releases.

It's a really good cipher. Very basic and plain but like a said really good. Thanks for sharing :).


Possibly Related Threads...
Thread / Author Replies Views Last Post
by G_LockFeb 10, 2026 12:55 AM 0 166 Feb 10, 2026 12:55 AM
Last Post: G_Lock
[Python] by MiguelSanchezMar 3, 2022 08:34 AM 0 99 Mar 3, 2022 08:34 AM
Last Post: MiguelSanchez
[C#] by SkofosAug 10, 2019 04:01 PM 3 209 Aug 10, 2019 04:01 PM
Last Post: MavenGradle