當前位置:首頁 » 密碼管理 » 宏加密

宏加密

發布時間: 2022-01-08 16:48:41

❶ 破解excel宏密碼

1\打開文件
2\工具---宏----錄制新宏---輸入名字如:aa
3\停止錄制(這樣得到一個空宏)
4\工具---宏----宏,選aa,點編輯按鈕
5\刪除窗口中的所有字元(只有幾個),替換為下面的內容:(復制吧)
6\關閉編輯窗口
7\工具---宏-----宏,選AllInternalPasswords,運行,確定兩次,等2分鍾,再確定.OK,密碼完全被你看見了!!
內容如下:
Public Sub AllInternalPasswords()
' Breaks worksheet and workbook structure passwords. Bob McCormick
' probably originator of base code algorithm modified for coverage
' of workbook structure / windows passwords and for multiple passwords
'
' Norman Harker and JE McGimpsey 27-Dec-2002 (Version 1.1)
' Modified 2003-Apr-04 by JEM: All msgs to constants, and
' eliminate one Exit Sub (Version 1.1.1)
' Reveals hashed passwords NOT original passwords
Const DBLSPACE As String = vbNewLine & vbNewLine
Const AUTHORS As String = DBLSPACE & vbNewLine & _
"Adapted from Bob McCormick base code by" & _
"Norman Harker and JE McGimpsey"
Const HEADER As String = "AllInternalPasswords User Message"
Const VERSION As String = DBLSPACE & "Version 1.1.1 2003-Apr-04"
Const REPBACK As String = DBLSPACE & "Please report failure " & _
"to the microsoft.public.excel.programming newsgroup."
Const ALLCLEAR As String = DBLSPACE & "The workbook should " & _
"now be free of all password protection, so make sure you:" & _
DBLSPACE & "SAVE IT NOW!" & DBLSPACE & "and also" & _
DBLSPACE & "BACKUP!, BACKUP!!, BACKUP!!!" & _
DBLSPACE & "Also, remember that the password was " & _
"put there for a reason. Don't stuff up crucial formulas " & _
"or data." & DBLSPACE & "Access and use of some data " & _
"may be an offense. If in doubt, don't."
Const MSGNOPWORDS1 As String = "There were no passwords on " & _
"sheets, or workbook structure or windows." & AUTHORS & VERSION
Const MSGNOPWORDS2 As String = "There was no protection to " & _
"workbook structure or windows." & DBLSPACE & _
"Proceeding to unprotect sheets." & AUTHORS & VERSION
Const MSGTAKETIME As String = "After pressing OK button this " & _
"will take some time." & DBLSPACE & "Amount of time " & _
"depends on how many different passwords, the " & _
"passwords, and your computer's specification." & DBLSPACE & _
"Just be patient! Make me a coffee!" & AUTHORS & VERSION
Const MSGPWORDFOUND1 As String = "You had a Worksheet " & _
"Structure or Windows Password set." & DBLSPACE & _
"The password found was: " & DBLSPACE & "$$" & DBLSPACE & _
"Note it down for potential future use in other workbooks by " & _
"the same person who set this password." & DBLSPACE & _
"Now to check and clear other passwords." & AUTHORS & VERSION
Const MSGPWORDFOUND2 As String = "You had a Worksheet " & _
"password set." & DBLSPACE & "The password found was: " & _
DBLSPACE & "$$" & DBLSPACE & "Note it down for potential " & _
"future use in other workbooks by same person who " & _
"set this password." & DBLSPACE & "Now to check and clear " & _
"other passwords." & AUTHORS & VERSION
Const MSGONLYONE As String = "Only structure / windows " & _
"protected with the password that was just found." & _
ALLCLEAR & AUTHORS & VERSION & REPBACK
Dim w1 As Worksheet, w2 As Worksheet
Dim i As Integer, j As Integer, k As Integer, l As Integer
Dim m As Integer, n As Integer, i1 As Integer, i2 As Integer
Dim i3 As Integer, i4 As Integer, i5 As Integer, i6 As Integer
Dim PWord1 As String
Dim ShTag As Boolean, WinTag As Boolean

Application.ScreenUpdating = False
With ActiveWorkbook
WinTag = .ProtectStructure Or .ProtectWindows
End With
ShTag = False
For Each w1 In Worksheets
ShTag = ShTag Or w1.ProtectContents
Next w1
If Not ShTag And Not WinTag Then
MsgBox MSGNOPWORDS1, vbInformation, HEADER
Exit Sub
End If
MsgBox MSGTAKETIME, vbInformation, HEADER
If Not WinTag Then
MsgBox MSGNOPWORDS2, vbInformation, HEADER
Else
On Error Resume Next
Do 'mmy do loop
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
With ActiveWorkbook
.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If .ProtectStructure = False And _
.ProtectWindows = False Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND1, _
"$$", PWord1), vbInformation, HEADER
Exit Do 'Bypass all for...nexts
End If
End With
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
If WinTag And Not ShTag Then
MsgBox MSGONLYONE, vbInformation, HEADER
Exit Sub
End If
On Error Resume Next
For Each w1 In Worksheets
'Attempt clearance with PWord1
w1.Unprotect PWord1
Next w1
On Error GoTo 0
ShTag = False
For Each w1 In Worksheets
'Checks for all clear ShTag triggered to 1 if not.
ShTag = ShTag Or w1.ProtectContents
Next w1
If ShTag Then
For Each w1 In Worksheets
With w1
If .ProtectContents Then
On Error Resume Next
Do 'Dummy do loop
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If Not .ProtectContents Then
PWord1 = Chr(i) & Chr(j) & Chr(k) & Chr(l) & _
Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
MsgBox Application.Substitute(MSGPWORDFOUND2, _
"$$", PWord1), vbInformation, HEADER
'leverage finding Pword by trying on other sheets
For Each w2 In Worksheets
w2.Unprotect PWord1
Next w2
Exit Do 'Bypass all for...nexts
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
Loop Until True
On Error GoTo 0
End If
End With
Next w1
End If
MsgBox ALLCLEAR & AUTHORS & VERSION & REPBACK, vbInformation, HEADER
End Sub

❷ 如何加密宏代碼

從VBA編輯窗口工具欄的:工具→VBAProject屬性→保護→鎖定工程(點中查看時鎖定工程)→查看工程屬性密碼→密碼(在此框中輸入密碼)→確認密碼(在此框中再次輸入密碼)→確定→保存退出,下次打開的時候就要輸入正確的密碼,才能看到代碼

❸ EXCEL宏加密破解

可以把文件發過來幫你解密,不過會驗證你修改的合法性,不會幫你隨意解密商業代碼。[email protected]

❹ 怎麼破解word宏密碼,我想把word裡面的宏代碼拿出來,但是加密了,跪求怎麼破解

off密碼破解.rar (509.1K),只要有網路5秒可移除密碼,但off2007除外,以上軟體無毒放心使用.

❺ 如何給EXCEL中的宏加密防止別人查看和修改

vba窗口-工具-VBAProject屬性-保護-打勾-密碼!

❻ 如何修改通過宏加密文檔的密碼

要修改通過宏加密的Word文檔的密碼,用戶可以按照以下方法來處理。

切換到【視圖】選項卡中,單擊【宏】組中的【宏】按鈕,在彈出的下拉庫中【查看宏】按鈕,打開【宏】對話框。

在【宏名】文本框中單擊【AutoPassWord】選項,然後單擊「編輯」按鈕。

在彈出的【Normal

NewMacros(代碼)】窗口「代碼」中的找到「.PassWord
=」和「.WritePassWord
=」,將其後面的數字或字元等修改為新的密碼,保存後關閉此窗口。

單擊【宏】對話框中的「運行」按鈕即可。

❼ 如何用C語言的宏實現數據加密

宏是一種C語言中的編碼精簡器,基本上有這么幾個作用 1. 預編譯和編譯時用到的常量 2. 某個子過程用函數調用寫時間開銷太大 3. 編譯控制
宏本身是不能實現你的加密數據功能的,如加密個文件、加密某個內存存儲、或加密從網路傳來的數據,它沒這個功能。但是用宏可以把程序的源文件寫的讓別人「看不懂」。
要用宏加密,只能是用宏調用加密函數如Crypto++中的函數進行加密。

❽ Excel宏加密後,無論創建、刪除還是編輯均需密碼,如何破解

  • 1、我新建一個excel文件(.xlsx格式的)來測試破解過程,其它文件可以參考,但最好要備份原來的文件,設置工作表、工作薄為密碼保護,保存後

❾ Excel中的xlsm宏密碼怎麼破解

首先,先去下載一款代碼編輯器Notepad++

最後,保存後關閉檔案,重新打開檔案就可以看到裡面的代碼了

PS. 破解僅用來學習,但不要擋了別人的財路

熱點內容
計算機c語言考試 發布:2024-12-21 22:43:19 瀏覽:392
快手腳本點亮 發布:2024-12-21 22:35:36 瀏覽:398
和平精英電腦版伺服器滿了 發布:2024-12-21 22:34:39 瀏覽:700
緩存包怎麼用 發布:2024-12-21 22:31:36 瀏覽:852
瑞士加密谷協會 發布:2024-12-21 22:29:25 瀏覽:391
雲的伺服器申請注冊 發布:2024-12-21 22:23:35 瀏覽:572
怎麼打壓縮包 發布:2024-12-21 22:18:25 瀏覽:857
慧編程編游戲 發布:2024-12-21 22:12:25 瀏覽:914
sharpziplib解壓rar 發布:2024-12-21 22:03:21 瀏覽:420
安卓應用內下載的視頻在哪裡 發布:2024-12-21 21:48:13 瀏覽:178