Skip to content

Instantly share code, notes, and snippets.

View HoLyVieR's full-sized avatar

Olivier Arteau HoLyVieR

  • Montreal, QC, Canada
View GitHub Profile
@HoLyVieR
HoLyVieR / PKCS7Encoder
Last active August 29, 2015 14:26 — forked from wangxiaodong/PKCS7Encoder
PKCS7Encoder.py
class PKCS7Encoder():
"""
Technique for padding a string as defined in RFC 2315, section 10.3,
note #2
"""
class InvalidBlockSizeError(Exception):
"""Raised for invalid block sizes"""
pass
def __init__(self, block_size=16):