Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
IronScripter Crypto
$crypto = @"
P k T r 2 s z 2 * c F -
r a z 7 G u D 4 w 6 U #
g c t K 3 E @ B t 1 a Y
Q P i c % 7 0 5 Z v A e
W 6 j e P R f p m I ) H
y ^ L o o w C n b J d O
S i 9 M b e r # ) i e U
* f 2 Z 6 M S h 7 V u D
5 a ( h s v 8 e l 1 o W
Z O 7 l p K y J l D z $
- j I @ t T 2 3 R a i k
q = F & w B 6 c % H l y
"@
$x = 1
$y = 12
$crypto2 = $crypto.Replace(" ","").replace("`r`n","")
$crypto2[($x-1)] + `
$crypto2[($x-1)+($y)] + `
$crypto2[($x-1)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `
$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)]
@thedavecarroll

This comment has been minimized.

Copy link

thedavecarroll commented Jun 30, 2019

Hey, I am curious how you determined what X and Y values to use. I'm not too familiar with cryptograms, so I really didn't know where to start.

I've already added my own solution.

Also, cool name. :)

@dacarroll

This comment has been minimized.

Copy link
Owner Author

dacarroll commented Jun 30, 2019

Hey, thanks Dave. Honestly, I wasn't totally sure where to start either. Late at night I just wanted the answer, so I started putting varying numbers in x/y variables until it found the right combo.

Your solution is far more versatile ;)

@0ryant

This comment has been minimized.

Copy link

0ryant commented Jul 6, 2019

@Maverick5533

This comment has been minimized.

Copy link

Maverick5533 commented Jul 23, 2019

$crypto = @"
P k T r 2 s z 2 * c F -
r a z 7 G u D 4 w 6 U #
g c t K 3 E @ B t 1 a Y
Q P i c % 7 0 5 Z v A e
W 6 j e P R f p m I ) H
y ^ L o o w C n b J d O
S i 9 M b e r # ) i e U

  • f 2 Z 6 M S h 7 V u D
    5 a ( h s v 8 e l 1 o W
    Z O 7 l p K y J l D z $
  • j I @ t T 2 3 R a i k
    q = F & w B 6 c % H l y
    "@

$x = 1

$y = 15

while($y -gt 0){

$crypto2 = $crypto.Replace(" ","").replace("rn","")

$crypto2[($x-1)] + `

$crypto2[($x-1)+($y)] + `

$crypto2[($x-1)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)] + `

$crypto2[($x-1)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)+($y)+($x)]

$y--
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.