Skip to content

Instantly share code, notes, and snippets.

Půlsem 2019

Skupina A

  1. Zasifrujte CAESAR Caesarovou sifrou
  2. Vlastnosti, které musí splňovat hashovaci funkce
  3. Definujte proudove a blokové šifry
  4. Vypiste šifry klasické kryptografie a jejich principy
  5. Nakreslete schéma systému pro přenos dat, který splňuje všechny bezpečnostní cíle
@Khubajsn
Khubajsn / 20.in
Last active April 18, 2020 20:25
1,2,3,4,5,6,7,8,9,10,11,12,13
abcdefghijq
7
1,2,3,11
2,a,2
1,a,1
3,a,3
4,b,1
5,c,2
6,d,3
@Khubajsn
Khubajsn / commands--toggle_union_door.lua
Last active July 28, 2016 21:30
mpf/ota unlock door plugin - NOT tested
local COMMAND = Clockwork.command:New("ToggleUnionDoor");
COMMAND.tip = "Makes a door be a Union door that can be unlocked by defined factions or removes this status from such a door.";
COMMAND.text = "";
COMMAND.access = "a";
COMMAND.flags = CMD_DEFAULT;
COMMAND.arguments = 0;
function COMMAND:OnRun(ply, arguments)
local door = ply:GetEyeTrace().Entity;
ENT.Base = "ananke_entitybase"
ENT.PrintName = "wp_smoke"
ENT.Author = "Lenny., WARPAC team"
ENT.Contact = "warpac-rp.com"
ENT.Instructions = "mhm"
ENT.Spawnable = true
ENT.Emitter = false
---
-- Sublime Glass - Garry's Mod
--
-- Use with the 'Sublime Text Trans' package.
-- https://github.com/vhanla/SublimeTextTrans
--
if SERVER then
AddCSLuaFile()
return
@Khubajsn
Khubajsn / Command.cs
Created June 14, 2013 16:27
Twitach - Turtle WITh A CHalk.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Twitach
{
class TwitachException : Exception
{
public TwitachException(string message) : base(message) { }
@Khubajsn
Khubajsn / drawingMultilineText.lua
Created April 29, 2013 15:21
Garry's mod Lua - drawing multiline text.
local currentY = 50; -- the first line of text will be at Y coordinate 50
local textX = 50; -- what X coordinate will the text be drawn from
local maxWidth = 500; -- maximal width of the text, if the text exceeds this size then it'll be broken into another line(s)
surface.SetFont("SomeFontYouUse")
surface.SetTextColor(Color(255,255,255))
local function breakIntoLines(text, mWidth)
local wordsBuffer = {}
local lines = {}
@Khubajsn
Khubajsn / CrossThreadControlManipulation.cs
Created April 18, 2013 17:18
Finally found a way to quickly and efficiently manipulate windows form controls from another thread - doing this without invoking the control results in an exception.
using System.Threading;
private void button1_Click(object sender, EventArgs e)
{
testingLabel.Text = "Thread started.";
Thread t = new Thread(doTheMagic);
t.Start();
}