Skip to content

Instantly share code, notes, and snippets.

View c04tl's full-sized avatar

Luis Medina c04tl

View GitHub Profile
@mauler
mauler / http_server_auth.py
Last active January 21, 2026 21:55 — forked from fxsjy/SimpleAuthServer.py
Python3 http.server supporting basic HTTP Auth (username/password)
# Extended python -m http.serve with --username and --password parameters for
# basic auth, based on https://gist.github.com/fxsjy/5465353
from functools import partial
from http.server import SimpleHTTPRequestHandler, test
import base64
import os
class AuthHTTPRequestHandler(SimpleHTTPRequestHandler):
"""
Leer mensaje en una imagen utilizando esteganografía, leyendo un bit en cada nivel de color
Nota: recuerda instalar Pillow:
pip install Pillow
@author parzibyte
@date 06-04-2018
@web parzibyte.me/blog
"""
@oss6
oss6 / lcg.py
Created December 22, 2013 16:42
Python implementation of the LCG (Linear Congruential Generator) for generating pseudo-random numbers.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import random as rnd
import numpy as np
from PIL import Image
from itertools import cycle
def main():