This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT | |
unity.id AS idUnity, | |
unity.name, | |
unity.active, | |
NULL AS idFact, | |
NULL AS descricao, | |
NULL AS title, | |
TRUNCATE((SELECT | |
ST_DISTANCE_SPHERE(POINT(- 30.0275415, - 51.1826964), | |
POINT(unity.lng, unity.lat)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App { | |
public static void main(String [] args) { | |
System.out.println("Chave 16bits: G3r0m3lcr1pt0666"); | |
System.out.println("Vetor: RandomInitVector"); | |
System.out.println("Iniciando criptografia"); | |
String conteudoCriptografado = Crypto.encryptAES("tipoQr=4park&valorPassagem=250&id4all=2345"); | |
System.out.println("Conteúdo criptografado: " + conteudoCriptografado); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger; | |
import java.nio.charset.Charset; | |
import java.security.MessageDigest; | |
import java.util.Random; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import org.apache.commons.codec.binary.Base64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HELLO="world" | |
ssh -t user@target bash -c "' | |
ls | |
pwd | |
if true; then |