设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 742|回复: 2
打印 上一主题 下一主题

[其它] [转帖]解ACCESS的数据库密码1

[复制链接]
跳转到指定楼层
1#
发表于 2006-7-20 17:20:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
unit GetAPass;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Variants, ComOBJ, StdCtrls, ExtCtrls, ComCtrls, FileCtrl, ActnList, ImgList,
  ToolWin;

const
  Model = 'yyyy-mm-dd hh:nn:ss';
type
  PassType = record
? PassCode: string;
? FileType: string;
? FileTime: TDateTime;
  end;???????????????
  TPassForm = class(TForm)
? ListView1: TListView;
? ImageList1: TImageList;
? StatusBar1: TStatusBar;
? Memo1: TMemo;
? CoolBar1: TCoolBar;
? ToolBar1: TToolBar;
? ToolButton1: TToolButton;
? ToolButton2: TToolButton;
? ToolButton3: TToolButton;
? ToolButton4: TToolButton;
? ToolButton5: TToolButton;
? ToolButton6: TToolButton;
? ImageList2: TImageList;
? Edit1: TEdit;
? Pick1: TDateTimePicker;
? Splitter1: TSplitter;
? procedure CloseForm(Sender: TObject);
? procedure FormCreate(Sender: TObject);
? procedure FormDestroy(Sender: TObject);
? procedure GetMDBDir(Sender: TObject);
? procedure Edit1KeyPress(Sender: TObject; var Key: Char);
? procedure CreateMDB(Sender: TObject);
? procedure GetAllPass(Sender: TObject);
? procedure SetCurTime(Sender: TObject);
  private
? { Private declarations }
? DateStr: DWord;
? PassCode: WideString;
? EncodeArray: array[0..19] of Word;
? ReaderArray: array[0..19] of Word;
? function ExecFile(FName: string): PassType;
? procedure ExecDirectory(S: string);
? function Make01(F: string; P: string = ''): boolean;
? function Make02(F: string): boolean;
? procedure SetTime(YY, MM, DD: Word); overload;
? procedure SetTime(MYDate: TDate); overload;
  public
? { Public declarations }
? FileBox1: TFileListBox;
  end;

var
//2079-06-05前?[EC37?9CFA?28E6?8A60?7B36?DFB1?1343?B133?795B?7C2A ]
//2079-06-05后?[ED37?9DFA?29E6?8B60?7A36?DEB1?1243?B033?785B?7D2A ]
{ 固定密钥 }
  InhereCode: array[0..9] of Word =
  ($37EC, $FA9C, $E628, $608A, $367B, $B1DF, $4313, $33B1, $5B79, $2A7C);

{?活动密钥 }
  UserCode8: array[0..9] of Word = //89年9月17日前
  ($8B86, $345D, $2EC6, $C613, $E454, $02F5, $8477, $DFCF, $1134, $C592);
  UserCode: array[0..9] of Word = //89年9月17日后
  ($7B86, $C45D, $DEC6, $3613, $1454, $F2F5, $7477, $2FCF, $E134, $3592);

  InCode97: array[0..19] of byte = //Access 97 固定密钥
  ($86, $FB, $EC, $37, $5D, $44, $9C, $FA, $C6, $5E,
? $28, $E6, $13, $00, $00, $00, $00, $00, $00, $00);
var
  PassForm: TPassForm;

implementation

{$R *.DFM}

procedure TPassForm.SetTime(YY, MM, DD: Word);
var
  myST: TSystemTime;
  MSec: Word;
begin
  with myST do begin
? MyST.wYear := YY;
? MyST.wMonth := MM;
? MyST.wDay := DD;
? DecodeTime(Time, wHour, wMinute, wSecond, MSec);
  end;
  try SetLocalTime(myST)except ShowMessage('Error'); end;
end;

procedure TPassForm.SetTime(MYDate: TDate);
var
  myST: TSystemTime;
  MSec: Word;
begin
  with myST do begin
? DecodeDate(MyDate, wYear, wMonth, wDay);
? DecodeTime(Time, wHour, wMinute, wSecond, MSec);
  end;
  try SetLocalTime(myST)except end;
end;

procedure TPassForm.CreateMDB(Sender: TObject);
var
  Date0: TDate;
  Date1: TDate;
  Date2: TDate;
begin
{?Date0 := EncodeDate(1978, 7, 01);
  Date1 := EncodeDate(1989, 9, 17);
  Date2 := EncodeDate(2079, 6, 05); }
  //SetTime(Date0);
  Make01('D:\DB01.MDB', '112233大');
  //SetTime(Date1);
  Make01('D:\DB02.MDB', '甚至于');
  //SetTime(Date2);
  Make01('D:\DB03.MDB', '');
end;

procedure SetFTime(const FileName: string; DTime: TDateTime);
var
  Q: HFile;
  ST: TSystemTime;
  FT: TFileTime;
begin
  DateTimeToSystemTime(DTime, ST);
  System
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享 分享淘帖 订阅订阅
2#
发表于 2006-7-20 17:59:00 | 只看该作者
好贴
3#
发表于 2006-7-20 20:13:00 | 只看该作者
learn
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2025-1-10 20:38 , Processed in 0.110325 second(s), 26 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表