1100000001111111001001110011000000010010010100011010001101011000110110011101101110101011101000000111010100111100110110001111100101100010010010000010111000001101100110110100011011101001100111101101001010001010101010101110110000011010111000110110111101011110101110101100101111001001011011001111100011110010011011100010100010100001011101110101000010110000100110010001111110110111001000100101100010101111111010000001111101110110010001100001101010000100000111001100101001100110111011110010010001111100110010100000000101001100011001010100000111010110101110110110111010101110101110100111010010010001001001000100011110110111010101100000100101111011111011110110110110000011101000000001001000101000001011001101010111011101111100000101111100011001101100011111101111001000011001111100110110001100000011110000111100100011001010000111010011101111001010101000111001100001110101101101111001100001100101100000010100010000010011011011101010110010010111100011110111111011000001001000110010001111000110111001001010100000111101010100100101011100
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
package com.ejemplo.holi; | |
import android.app.Activity; | |
import android.os.Bundle; | |
public class HoliActivity extends Activity { | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
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
package com.ejemplo.holi; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
public class HoliActivity extends Activity { | |
/** Called when the activity is first created. */ | |
@Override |
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
cecy@cecy-Inspiron-N4020:~/Documents/6-Semestre/Moviles/android/android/samples/android-8$ |
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
if(navigator.geolocation) { | |
function posiciona(position) { | |
var point = new google.maps.LatLng(position.coords.latitude, position.coords.longitude), | |
//var point = new google.maps.LatLng(25.7243557,-100.3124561), | |
opciones = { | |
zoom: 19, | |
center: point, | |
mapTypeId: google.maps.MapTypeId.SATELLITE |
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
#!/usr/bin/python | |
import random | |
import sys | |
import os | |
def desencriptar(encriptado): | |
"""desencriptar, toma el mensaje encriptado | |
y lee la clave del archivo correspondiente | |
""" | |
f = open('Aqui_no_hay_claves', "r") |
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
El mensaje original es: | |
Hola esta es la primer tarea de la materia de criptografia one time pad consiste en crear alguna clave para un texto aleatoriamente y guardarlo en archivos el mensaje original y la clave una vez que fue descifrado puede generar una nueva clave y eliminarla cuando ya fue descifrado | |
Mi mensaje encriptado | |
111100100111110100010010011100110000110100110100111001010110111010011010111000010011101101110110000000101101101111011110010010010100111101111100000101000100101100011111011110111010110111110010001100001101100110001111001111111011011010011001011011100100101000100010000010010111101101100110101010110110101011011111001000010110000001100001110011111010001111001111101010010101110001010111011010011111010000011101010000010001011101011100010100011001101110001110110101010100111101011101101011000000010011111010000011100000011000011001100000000110110111000100011100000011000110010011110111100110110010111111000111111000101000001110101100001100000000010110111100111100011100010101111001011101101001111 |
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
El mensaje original es: | |
Hola esta es la primer tarea de la materia de criptografia one time pad consiste en crear alguna clave para un texto aleatoriamente y guardarlo en archivos el mensaje original y la clave una vez que fue descifrado puede generar una nueva clave y eliminarla cuando ya fue descifrado | |
Mi mensaje encriptado | |
110010011101101000001101111011101100011011000100100001011001101111011000001110101000011111010101001110011110101000010000010011000100101000101100001001001110101110000110111011111101001100000001011111111000001100010001010111010000001100010010101101010000111110100001110010110011011000010101000101000010111101000011101001101100011011101010000101111010101000000010011110110011100111111100011101001011010011110101010000101100100001101011110010111001011000000000101000100101111010111110100011110000011101110110100100000100100110110101001101000001100100101100110001001001111000101101101111111000111100100111101101101000100011111000110010110010111110011011100100000001111010110111111110010110100100100 |
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
#!/usr/bin/python | |
lista = [[1,1,1,1], [1,1,1,0], [1,1,0,1], | |
[1,1,0,0], [1,0,1,1], [1,0,1,0], | |
[1,0,0,1], [1,0,0,0], [0,1,1,1], | |
[0,1,1,0], [0,1,0,1], [0,1,0,0], | |
[0,0,1,1], [0,0,1,0], [0,0,0,1], | |
[0,0,0,0]] | |
for i in range(16): | |
A = lista[i][0] |
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
#!/usr/bin/python | |
lista = [[1,1,1,1], [1,1,1,0], [1,1,0,1], | |
[1,1,0,0], [1,0,1,1], [1,0,1,0], | |
[1,0,0,1], [1,0,0,0], [0,1,1,1], | |
[0,1,1,0], [0,1,0,1], [0,1,0,0], | |
[0,0,1,1], [0,0,1,0], [0,0,0,1], | |
[0,0,0,0]] | |
for i in range(16): | |
A = lista[i][0] |