1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 06:31:14 +02:00
Files
openComputers_codes/crypttool/bin/decryptDisk.lua
2023-02-01 21:16:58 +01:00

17 lines
423 B
Lua

local fs = require("filesystem")
local shell = require("shell")
local crypttool = require("crypttool")
local data = require("component").data
local os = require("os")
local args, opt = shell.parse(...)
if (#args ~= 2) then
os.exit(1)
end
if (fs.isDirectory(args[1])) then
local proxy = crypttool.Proxy.new(args[1], data.md5(args[2]))
fs.umount(args[1])
fs.mount(proxy, args[1])
end