elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  cifrar archivo
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] Ir Abajo Respuesta Imprimir
Autor Tema: cifrar archivo  (Leído 2,643 veces)
Sancho.Mazorka


Desconectado Desconectado

Mensajes: 480


Gamer & Programador


Ver Perfil WWW
Re: cifrar archivo
« Respuesta #10 en: 23 Marzo 2007, 20:55 pm »

Como no tenia donde poner el .vbp, y no queria complicarlos tanto copie el .frm
Abran un archivo de texto y pongan lo que esta abajo, y despues guardenlo como .frm

Código:
VERSION 5.00
Begin VB.Form Form1
   BackColor       =   &H00000000&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Encriptador/Desncriptador"
   ClientHeight    =   2220
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   4995
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   2220
   ScaleWidth      =   4995
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdReset
      BackColor       =   &H00000000&
      Caption         =   "Reset"
      BeginProperty Font
         Name            =   "Comic Sans MS"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3000
      MaskColor       =   &H0000FF00&
      TabIndex        =   5
      Top             =   1200
      Width           =   1815
   End
   Begin VB.TextBox txtDesencriptado
      Height          =   375
      Left            =   1440
      TabIndex        =   3
      Top             =   1680
      Width           =   3495
   End
   Begin VB.CommandButton cmdDesencriptar
      BackColor       =   &H00000000&
      Caption         =   "descifrar"
      BeginProperty Font
         Name            =   "Comic Sans MS"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      MaskColor       =   &H0000FF00&
      TabIndex        =   2
      Top             =   1200
      Width           =   1815
   End
   Begin VB.TextBox txtEncriptado
      Height          =   375
      Left            =   1200
      TabIndex        =   1
      Top             =   600
      Width           =   3735
   End
   Begin VB.TextBox txtFuente
      Height          =   375
      Left            =   1200
      TabIndex        =   0
      Top             =   120
      Width           =   3735
   End
   Begin VB.Label Label1
      BackStyle       =   0  'Transparent
      Caption         =   "A cifrar ->"
      BeginProperty Font
         Name            =   "Comic Sans MS"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FF00&
      Height          =   255
      Left            =   0
      TabIndex        =   7
      Top             =   120
      Width           =   1095
   End
   Begin VB.Label Label3
      BackStyle       =   0  'Transparent
      Caption         =   "descifrado ->"
      BeginProperty Font
         Name            =   "Comic Sans MS"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FF00&
      Height          =   255
      Left            =   0
      TabIndex        =   6
      Top             =   1680
      Width           =   1455
   End
   Begin VB.Label Label2
      BackStyle       =   0  'Transparent
      Caption         =   "cifrado ->"
      BeginProperty Font
         Name            =   "Comic Sans MS"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FF00&
      Height          =   255
      Left            =   0
      TabIndex        =   4
      Top             =   600
      Width           =   1095
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdDesencriptar_Click()
On Error Resume Next
Dim Code() As String
Dim i As Integer

Code = Split(txtEncriptado.Text, "-")

For i = 0 To UBound(Code)
    txtDesencriptado.Text = txtDesencriptado.Text & Chr(Code(i))
Next i
End Sub

Private Sub txtFuente_KeyPress(KeyAscii As Integer)
txtEncriptado.Text = txtEncriptado.Text & KeyAscii & "-"
End Sub

Private Sub cmdReset_Click()
'Reseteamos todo =O
txtFuente.Text = ""
txtEncriptado.Text = ""
txtDesencriptado.Text = ""
End Sub

Al ejecutar el .frm ya les abrira el proyecto y no tendran que hacer nada! :)   es una encriptacion tonta en ASCII pero sirve de algo  :P


Sancho.Mazorka    :P


En línea

Ganador Xeon Web Server ! ! !    Sancho.Mazorka :D
http://foro.elhacker.net/index.php/topic,171903.75.html


Páginas: 1 [2] Ir Arriba Respuesta Imprimir 

Ir a:  
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines